Site
Home / Forum / Developers / Error when accessing API

Error when accessing API


Posted: 22 Mar 2020 14:45

zag


Posts: 3,515
Joined: 2020

When I am trying to access the API in the android app it is not collecting the data correctly.

When I am, accessing it online I get this error.

Not sure what is happening.

"events":"Invalid League ID passed"

Posted: 22 Mar 2020 15:44

zag


Posts: 3,515
Joined: 2020

Best post the URL you are using, so we can test, you can load any example into a browser to check.

Posted: 23 Mar 2020 22:26

zag


Posts: 3,515
Joined: 2020

https://www.thesportsdb.com/api/v1/json ... p/?id=4647

Posted: 24 Mar 2020 08:38

zag


Posts: 3,515
Joined: 2020

https://www.thesportsdb.com/api/v1/json/1/eventspastleague.php/?id=4647

Thanks, thats working correctly as far as I can tell. The JSON is valid and returns the correct data.

you can check in the browser with the JSON video addon for chrome.

https://chrome.google.com/webstore/deta ... iibnhdgobh


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 4 (Total: 4)