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

Error when reloading page after unauthorized login: tornado.httpclient.HTTPClientError: HTTP 400: Bad Request #1404

Open
philippgoehl opened this issue Oct 28, 2024 · 0 comments
Labels

Comments

@philippgoehl
Copy link

Describe the bug
When using OAuth and logging in with an unauthorized user (tested using Google OAuth) at first an error message is displayed. When reloading the page the following Error Message (find below) is displayed.

To Reproduce
Steps to reproduce the behavior:

  1. Use Google OAuth as authentication
  2. Login with a Google Account that is unauthorized
  3. Receiving an error message in the Flower UI
  4. Reload the page
  5. Error is thrown

Expected behavior
No Error? It was suggested to open an issue - so here it is :)

Error Message

flower   -> flower:2.0.0 tornado:6.4.1 humanize:4.11.0
software -> celery:5.4.0 (opalescent) kombu:5.4.2 py:3.12.6
            billiard:4.2.1 py-amqp:5.2.0
platform -> system:Linux arch:64bit
            kernel version:5.15.49-linuxkit-pr imp:CPython
loader   -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled

deprecated_settings: None

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/tornado/web.py", line 1790, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/flower/views/auth.py", line 44, in get
    user = await self.get_authenticated_user(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tornado/auth.py", line 987, in get_authenticated_user
    response = await http.fetch(
               ^^^^^^^^^^^^^^^^^
tornado.httpclient.HTTPClientError: HTTP 400: Bad Request

Kind regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant