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
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Right now, we don't document any of the errors that the API can return on an request, making it difficult for people trying to build in error handling for the api.
Even if we don't document every error, just documenting the format of the error messages makes it easier for people to parse them.
For example: POST /v2/auth/register/ with no body returns 400 with a body of
{
"username": [
"This field is required."
],
"password": [
"This field is required."
]
}
The text was updated successfully, but these errors were encountered:
I'm pretty sure we did not decide to go through with this because of the amount of ambiguous errors that can pop up not only from the ones we define, but from DRF or from python itself. Do you agree, @Joshua-Anderson?
I'm not sure defining every error is feasible, but defining at least some of the common errors can be helpful. There are a several errors that can come up through no fault of the API client itself, like the all apps must be transferred before deleting a user error, the API clients should know how to handle.
The big problem is that we have several error response formats (since python, DRF, and deis errors all look different), so it's hard for a client to assume what an error message will look like.
Right now, we don't document any of the errors that the API can return on an request, making it difficult for people trying to build in error handling for the api.
Even if we don't document every error, just documenting the format of the error messages makes it easier for people to parse them.
For example:
POST /v2/auth/register/
with no body returns400
with a body ofThe text was updated successfully, but these errors were encountered: