AmericanFootballApi

FREEMIUM
By REcodeX | Updated 8 days ago | Sports
Popularity

9.2 / 10

Latency

608ms

Service Level

100%

Health Check

100%

Back to All Discussions

Help loading player image

Rapid account: Mduffy 96
mduffy96
2 years ago

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!

Rapid account: Fluis Lacasse
fluis.lacasse Commented 2 years ago

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:

Login / Signup to post new comments