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 calling an API endpoint results in an internal server error, there's no way to know what the error was.
It would be great to implement some error handling, and return a JSON { message: string } object with the error message in case an error is caught. Returning error code 500 is fine.
The text was updated successfully, but these errors were encountered:
Oh yeah, I should probably have included such a request in the issue... I don't remember anymore, but I'll post here if I run into it again.
I just tested out some of the public API endpoints with curl but was unable to reproduce either. I'm pretty sure this error occurred when passing in some invalid inputs to some endpoint.
When calling an API endpoint results in an internal server error, there's no way to know what the error was.
It would be great to implement some error handling, and return a JSON
{ message: string }
object with the error message in case an error is caught. Returning error code 500 is fine.The text was updated successfully, but these errors were encountered: