Bug: Locally error's are not returned to user
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>
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
@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.
@antondubek we will resolve this issue with this one here - https://github.com/dgarnitz/vectorflow/issues/88