Closed
Bug 916886
Opened 11 years ago
Closed 11 years ago
[stage][traceback] 500 Error: ConnectionError: HTTPConnectionPool
Categories
(Socorro :: General, task)
Socorro
General
Tracking
(Not tracked)
RESOLVED
FIXED
60
People
(Reporter: mbrandt, Assigned: peterbe)
Details
(Whiteboard: [stage][traceback][qa-])
I'm seeing spurious but fairly consistent 500 errors on stage with this signature - ConnectionError: HTTPConnectionPool. This is occurring when I visit pages such as https://crash-stats.allizom.org/topcrasher/products/Firefox/versions/23.0.1?days=7 Here's the errormill goodness; https://errormill.mozilla.org/webtools/socorro-stage/group/97549/
Assignee | ||
Comment 1•11 years ago
|
||
All of these `ConnectionError` exceptions are basically due to annoying temporary network I/O outtages when the webhead is unable to connect to the middleware server. Since the problem almost always goes away a short while later, why don't we wrap our requests in a try:except with a manual sleep time. We should make it back off if it attempts too much.
Assignee: nobody → peterbe
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
So I did some research, ConnectionError basically happens when *you* don't have an internet connection. If you can connect the server but that server refuses to connect you get a HTTPError. It's easy to reproduce this. Just switch off your Wifi and try to load Socorro with using the dev server for the middleware. urllib3 (part of requests as a module), by default, uses 3 retries when it tries to connect. After the third attempt it raises a MaxRetryError which when bubbled up into requests becomes a ConnectionError. In other words, it's a good idea to add a sleeper that retries.
Assignee | ||
Comment 3•11 years ago
|
||
Pull request: https://github.com/mozilla/socorro/pull/1517
Comment 4•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/ea632ccedce341bbd0fbca07c536682e1aa86c2b fixes bug 916886 - retry on ConnectionError on middleware, r=rhelmer
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Whiteboard: [stage][traceback] → [stage][traceback][qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•