Skip to content

Not returning 401 for anonymous users #1342

Answered by frankie567
holtgrewe asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, no, that's a browser thing. They'll always log the error in the console, even though we catch it inside the JS code.

Personally, I just... live with it. It's worth to note that it'll happen for every errors thrown by your FastAPI app: typically, the 422 errors thrown by Pydantic validation errors will also show up.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by holtgrewe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants