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

ConnectionError: HTTPSConnectionPool(host='en.wikipedia.org', port=443): Max retries exceeded with url: /w/api.php... #86

Closed
danielunderwood opened this issue Dec 9, 2018 · 1 comment

Comments

@danielunderwood
Copy link
Contributor

https://sentry.io/lidarr/lidarr-api-metadata/issues/786046421/?referrer=github_plugin

ConnectionError: HTTPSConnectionPool(host='en.wikipedia.org', port=443): Max retries exceeded with url: /w/api.php?inprop=url&redirects=&format=json&prop=info%7Cpageprops&titles=Zatox&action=query (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f398b48dad0>: Failed to establish a new connection: [Errno 101] Network unreachable',))
(17 additional frame(s) were not displayed)
...
  File "lidarrmetadata/api.py", line 125, in get_artist_info
    wikipedia_links[0]['target'])

ConnectionError: HTTPSConnectionPool(host='en.wikipedia.org', port=443): Max retries exceeded with url: /w/api.php?inprop=url&redirects=&format=json&prop=info%7Cpageprops&titles=Zatox&action=query (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f398b48dad0>: Failed to establish a new connection: [Errno 101] Network unreachable',))
@danielunderwood
Copy link
Contributor Author

Accidentally duplicated #63.

danielunderwood added a commit that referenced this issue Dec 13, 2018
* Catch request error on for wikipedia requests. Fixes #86.

* Catch request errors for fanart. Fixes #83.

* Rework 500 error handling

Returns 503 and appropriate message for mb/redis connection issues.
Now returns generic message for other 500 errors. Fixes #87.

* Add connection timeout to db connection. Will raise OperationalError for timeout. Fixes #29.
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