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

Commercial Usage now requires RapidAPI Key, not Mashape_Key #50

Open
jbh2155 opened this issue Dec 14, 2022 · 0 comments
Open

Commercial Usage now requires RapidAPI Key, not Mashape_Key #50

jbh2155 opened this issue Dec 14, 2022 · 0 comments

Comments

@jbh2155
Copy link

jbh2155 commented Dec 14, 2022

I am trying to use this API for commercial usage, so I followed the steps in the readme.md: https://github.com/Damgaard/PyImgur#mashape-api

I then get this error: HTTPSConnectionPool(host='imgur-apiv3.p.mashape.com', port=443): Max retries exceeded with url: /3/image (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb9afb430>: Failed to establish a new connection: [Errno -2] Name or service not known'))

The problem is occurring because imgur switched from using mashape to using rapidapi for commercial usage (see new docs here

The solution is to replace the endpoint with imgur-apiv3.p.rapidapi.com and the mashape_key with the X-RapidAPI-Key.

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

1 participant