vectorflow icon indicating copy to clipboard operation
vectorflow copied to clipboard

Bug: Locally error's are not returned to user

Open antondubek opened this issue 2 years ago • 3 comments

When hitting the /embed endpoint with incorrect parameters a 500 internal server error is thrown not the error from within the application.

Examples:

  • No pinecone credentials / incorrect pinecone credentials
  • Missing / incorrect EmbeddingsMetadata
  • Missing / incorrect VectorDBMetadata
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

antondubek avatar Sep 11 '23 19:09 antondubek

Are you running stale code? have you tried pulling, rebuilding the images and re-running the containers?

There is logic to return different types of 400 errors for those scenarios

dgarnitz avatar Sep 12 '23 18:09 dgarnitz

@antondubek a larger problem beyond this is how return errors to the user that have occurred deeper in the system.

since its a distributed system, we would have to write the errors to a central store somewhere and expose access to them via API.

dgarnitz avatar Sep 12 '23 18:09 dgarnitz

@antondubek we will resolve this issue with this one here - https://github.com/dgarnitz/vectorflow/issues/88

dgarnitz avatar Apr 04 '24 18:04 dgarnitz