-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
It looks like the JWT might not be updated correctly hence the popup, but the file is still uploading in the background, leading to the user thinking that the error is with the upload.
Traceback (most recent call last):
File "/code/.venv/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 429, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/code/.venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/fastapi/applications.py", line 276, in __call__
await super().__call__(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
await self.middleware_stack(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/code/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/code/.venv/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/code/.venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/code/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/code/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/code/.venv/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/code/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "/code/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "/code/app/routers/keycloak.py", line 189, in refresh_token
return await retreive_refresh_token(email)
File "/code/app/keycloak_auth.py", line 499, in retreive_refresh_token
new_tokens = keycloak_openid.refresh_token(token_exist.refresh_token)
File "/code/.venv/lib/python3.9/site-packages/keycloak/keycloak_openid.py", line 340, in refresh_token
return raise_error_from_response(data_raw, KeycloakPostError)
File "/code/.venv/lib/python3.9/site-packages/keycloak/exceptions.py", line 192, in raise_error_from_response
raise error(
keycloak.exceptions.KeycloakPostError: 400: b'{"error":"invalid_grant","error_description":"Token is not active"}'
Metadata
Metadata
Assignees
Labels
frontendFrontend specific (react)Frontend specific (react)
Type
Projects
Status
No status