Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lib doesn't work anymore #3

Open
nmeynard opened this issue Nov 17, 2022 · 2 comments
Open

Lib doesn't work anymore #3

nmeynard opened this issue Nov 17, 2022 · 2 comments

Comments

@nmeynard
Copy link

All is in the title, every methods raise JSONDecodeError

@bgrnwd
Copy link

bgrnwd commented Dec 31, 2022

Ran in to this as well. The line that's erroring out is in requests.py.

requests.py:17, in make_request(endpoint, **kwargs)
     15 URL = _make_url(endpoint)
     16 response = requests.get(URL, params=params)
---> 17 return response.json()

Based on that file, I tried to reconstruct the API path for some calls and it seems to me the API is no longer working/available. Whenever I try to hit and endpoint, I get a 404

Here are some of the endpoints I tried:

@bgrnwd
Copy link

bgrnwd commented Dec 31, 2022

Seems like the API key needs to be changed to 2, based on the documentation on the website

https://www.thesportsdb.com/api/v1/json/2/all_countries.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants