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
When Dio fails to compose a JSON object (say the toJson function of the object in question is faulty) it returns an error 500 leading to believe the server couldn't handle the request. Without the log interceptor this can be very confusing.
Solution Brainstorm
Use a different error code to indicate to the developer that the client is the problem:
maybe 451 (Unavailable for legal Reasons) because it would be funny
and more serious 499 (client closed request)
The text was updated successfully, but these errors were encountered:
Request Statement
When Dio fails to compose a JSON object (say the toJson function of the object in question is faulty) it returns an error 500 leading to believe the server couldn't handle the request. Without the log interceptor this can be very confusing.
Solution Brainstorm
Use a different error code to indicate to the developer that the client is the problem:
The text was updated successfully, but these errors were encountered: