Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid redirect loop if backend is not reachable #417

Open
georgeto opened this issue Aug 31, 2020 · 0 comments
Open

Avoid redirect loop if backend is not reachable #417

georgeto opened this issue Aug 31, 2020 · 0 comments

Comments

@georgeto
Copy link
Contributor

The exception handler for BackendErrors redirects to the index page.
If the user is logged in, and the BackendError is caused by the backend not being reachable, the flask login user loader will again raise a BackendError and with that comes the next redirect...

Somehow we have to detect this scenario and return an anonymous user from our user loader, and at the time display a Communication with the backend server failed error message.

@georgeto georgeto changed the title Avoid redirect loop if the backend is not reachable Avoid redirect loop if backend is not reachable Aug 31, 2020
@ibot3 ibot3 pinned this issue May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants