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

handle missing 'fly-client-ip' #7814

Merged
merged 1 commit into from
Apr 5, 2022
Merged

Conversation

chris48s
Copy link
Member

@chris48s chris48s commented Apr 5, 2022

Refs https://sentry.io/organizations/shields/issues/3133159541/

I haven't really got to the bottom of why, but for some small subset of requests on fly (tens per hour) it seems the fly-client-ip header is not set which is causing us to throw an unhandled exception and crash the thread. Doing this will reject the request without throwing.

@chris48s chris48s added operations Hosting, monitoring, and reliability for the production badge servers bug Bugs in badges and the frontend labels Apr 5, 2022
@shields-ci
Copy link

Warnings
⚠️ This PR modified the server but none of its tests.
That's okay so long as it's refactoring existing code.
Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against 34b3a80

@chris48s chris48s merged commit 8821ff8 into badges:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend operations Hosting, monitoring, and reliability for the production badge servers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants