-
Notifications
You must be signed in to change notification settings - Fork 0
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
ODB occasionally returns 503s #528
Comments
Do you have any other information about the 503? There should be a stacktrace or something, I would think. |
That's all there is in the log. I wonder if it's even getting to the ODB. The log has |
Just got another one today:
|
According to the heroku documentation (https://devcenter.heroku.com/articles/error-codes#h18-server-request-interrupted)
In the recent incident reported by Carlos, this happened because of an invalid attachment type in the request. The server detected this error and responded without reading the request body stream. (It seems that for small enough bodies, http4s must read the entire body up front because the error doesn't happen.) I can refactor the services a bit to prevent this error for bad requests. The downside is that if the user is trying to upload a 10M file, we'll have to stream the entire 10M before telling them they have something like a bad attachment type or file extension. There are cases we won't be able to prevent.
|
I noticed this during calls to the attachment REST API. It frequently happens for file uploads, and
may
happen more frequently for larger files. But, it happens for smaller files, too. I believe it has also happened while trying to obtain pre-signed urls.However, looking in the logs for an example, I see instances for it happening on the
ws
endpoint as well. Here is an example:Clue must be retrying it so we haven't been seeing the error in the UI.
The text was updated successfully, but these errors were encountered: