danny-avila / rag_api

ID-based RAG FastAPI: Integration with Langchain and PostgreSQL/pgvector
https://librechat.ai/
143 stars 60 forks source link

fix: Return proper response on authorization failures #37

Closed bnord01 closed 1 month ago

bnord01 commented 1 month ago

Currently unauthorized requests return an internal server error and the exception (including the stack trace, 68 lines) is logged to the console.

This PR fixes this by returning the proper response and adds some minimal logging.

danny-avila commented 1 month ago

Thanks!