marieai / marie-ai

Integrate AI-powered Document Analysis Pipelines
MIT License
57 stars 3 forks source link

Better handling of failed service #72

Open gregbugaj opened 1 year ago

gregbugaj commented 1 year ago

When service goes into invalid state the application returns status code 404 which is not a valid JSON response.

So the target application will throw following error.

 ERROR [182866178 ] Unable to deserialize
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 4 path $

Need to have a better way to handle service failure