-
Notifications
You must be signed in to change notification settings - Fork 192
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
Intermittent 500 for /api/issues/category/new #870
Comments
Ooo. I just added print(issues) to https://github.com/webcompat/webcompat.com/blob/master/webcompat/api/endpoints.py#L131 and got the following:
|
Hmm, thinking of the best way to handle this. The problem is if we get a 304 from GitHub when we request all open issues, we get an empty body (which is what should happen). However, we try to convert that to json before passing to We could kill OR, we could filter client-side and avoid the whole problem. OR... something I'm not thinking of. |
Actually, I think this is a bug that @karlcow fixed a long time ago and I re-introduced it. I have a fix to just pass back the 304 with an empty body and the browser does the right thing™. |
💡 hehe |
STR:
Fire up local server
Visit localhost:5000/
It doesn't seem to happen every time, if I refresh I sometimes get a 200. That's weird.
The text was updated successfully, but these errors were encountered: