AmericanFootballApi

免费增值
通过 REcodeX | 已更新 23 days ago | Sports
人气

9.2 / 10

延迟

562ms

服务等级

100%

Health Check

100%

返回所有讨论

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.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论