[BUG] Token validation in middleware #516
Labels
needs-info
Need more information such as reproduction step
stale
Issue labeled as stale will be closed automatically
Describe the bug
The middleware function while calling get_current_user is not catching any errors returned by get_current_user function.
To Reproduce
Go to bedrock-claude-chat/backend/app/main.py
Line 94 middleware function . And in the same parent folder dependencies.py when it raises error it is not being handled in the main.py middleware function. Which would lead to errors and multiple invocations.
Ideally when something fails we should return from middleware only without processing further.
The text was updated successfully, but these errors were encountered: