Skip to content

Commit

Permalink
Ignore 414 and 520 responses from the tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed May 5, 2021
1 parent a3db89d commit 9c2f125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def track(request, lines: list[str]):
except aiohttp.client_exceptions.ContentTypeError:
message = await response.text()
logger.error(f"Tracker response {response.status}: {message}")
if response.status >= 404:
if response.status >= 404 and response.status not in {414, 520}:
settings.TRACK_REQUESTS = False
bugsnag.notify(
RuntimeError(f"Disabled tracking after {response.status} response"),
Expand Down

0 comments on commit 9c2f125

Please sign in to comment.