feoblog icon indicating copy to clipboard operation
feoblog copied to clipboard

Expose Item validation errors via HTTP 500

Open NfNitLoop opened this issue 4 years ago • 1 comments

I'm writing a new rss->feoblog client for Deno. I was getting a 500 "Server Error" from the server. That's not super helpful. Should expose what failed validation.

I saw this on my actix web console:

[2021-07-04T02:05:33Z ERROR actix_http::response] Internal Server Error: Error { inner: ValidationError { message: "Timestamp is required" } }

Make sure that gets returned via HTTP.

NfNitLoop avatar Jul 04 '21 02:07 NfNitLoop

This would be an excellent thing to write an automated test for. Might be fun to set up an automated testing framework w/ this case.

NfNitLoop avatar Jul 04 '21 02:07 NfNitLoop