-
Notifications
You must be signed in to change notification settings - Fork 105
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
Debug api "502 Bad Gateway" issue #5184
Comments
cms gunicorn config: https://github.com/fecgov/fec-cms/blob/develop/bin/run.sh api gunicorn config: https://github.com/fecgov/openFEC/blob/develop/bin/run.sh |
Quick summary of the things observed on Stage space:
|
An API user recently reported getting a 502 Bad Gateway error on SA endpoint |
Summary: The above 502 error issue are on multiple links. There were reported by multiple clients. We need to find a way for the coming elections. We can duplicate it workaround: to use curl or wget to get the large >250-350KB content. Actually, it is better for the client to automate it with a script/command line to parse the JSON format automatically. (Our API is not for users to view data from browser :) but use scripts) Please review analysis details, workaround code and demo here; #5184 (comment) --the best is to use curl sample code or wget , sample code This works for Linux, MacOS or window users. samples Summary: use curl workaround. |
Closing in favor of #5267 |
What we’re after
Recently, some api users report get the following error frequently :
"502 Bad Gateway: Registered endpoint failed to handle the request." when per_page > some number (like 100, 80.. on a couple of endpoints)
From user 1 's email:
From user 2 's email:
There is no issue on local api env. (connect dev db)
Action item(s)
Completion criteria
and
The text was updated successfully, but these errors were encountered: