mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[PR #714] [MERGED] Return 401 when token is invalid #950
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#950
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/benbusby/whoogle-search/pull/714
Author: @gdm85
Created: 4/6/2022
Status: ✅ Merged
Merged: 4/18/2022
Merged by: @benbusby
Base:
main← Head:fix/invalid-token-401📝 Commits (2)
41b9e4cReturn 401 when token is invalid9ed2c59Merge remote-tracking branch 'upstream/main' into fix/invalid-token-401📊 Changes
1 file changed (+10 additions, -3 deletions)
View changed files
📝
app/routes.py(+10 -3)📄 Description
In some rare instances (a race condition perhaps?) a
cryptography.fernet.InvalidTokenexception is thrown resulting into a broken connection.This change gracefully returns a 401 error instead.
NOTE: it might be desirable to do some logging as well if the client is induced into this error because of a bug on server side
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.