When I try to fetch the player image, I get the following error: Unexpected token ‘�’, “����”… is not valid JSON
Any ways to fix this? Thanks!
Hello, The response returned from the images endpoints are “image/png” and not json, so you can’t parse it to json. One thing you can do is to convert from bytes to base64 string or use it from the cache.
Thanks.
Join in the discussion - add comment below:
Hello,
The response returned from the images endpoints are “image/png” and not json, so you can’t parse it to json. One thing you can do is to convert from bytes to base64 string or use it from the cache.
Thanks.