You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a whole thing that would require significant additional code to implement for not much benefit, so I'm not really keen on doing it.
We'd have to consider things like how GtS should know that it's a temporary database issue and not a permanent one, how long GtS should report to clients that they should wait before trying again, etc.
Besides, most remote instance softwares (including GtS) will probably retry later on a 5xx anyways, since Service Unavailable is 503.
I'm gonna close this as "won't implement".
EDIT: I also changed the title to reflect that this is a feature request; it's not really a bug to serve Internal Server Error when the DB has gone missing.
Describe the bug with a clear and concise description of what the bug is.
During a PostgreSQL restart (e.g. due to a system security upgrade), requests are given a 500 instead of a 4xx code to try again:
What's your GoToSocial Version?
0.13.1-SNAPSHOT+git-4b0eefb 🦥
GoToSocial Arch
amd64 binary
What happened?
No response
What you expected to happen?
The absence of a DB is handled gracefully; clients are given a 4xx error code to make them retry later.
How to reproduce it?
No response
Anything else we need to know?
Yes, I should probably stop GtS before upgrading PostgreSQL. I had not thought of it.
The text was updated successfully, but these errors were encountered: