dheerajturaga commented on PR #56457:
URL: https://github.com/apache/airflow/pull/56457#issuecomment-3718604224
@jscheffl Im unable to login to airflow on this branch. I lauched airflow
with `breeze start-airflow -d -e --executor EdgeExecutor` and im seeing this
error
```
2026-01-07T12:02:29.527089Z [error ] JWT token is not valid: Not enough
segments [airflow.api_fastapi.auth.managers.base_auth_manager]
loc=base_auth_manager.py:114
INFO: 172.18.0.1:39458 - "POST /auth/token HTTP/1.1" 500 Internal Server
Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File
"/usr/python/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py",
line 416, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/python/lib/python3.10/site-packages/fastapi/applications.py",
line 1135, in __call__
await super().__call__(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/applications.py",
line 107, in __call__
await self.middleware_stack(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line
186, in __call__
raise exc
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line
164, in __call__
await self.app(scope, receive, _send)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/gzip.py", line
29, in __call__
await responder(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/gzip.py", line
130, in __call__
await super().__call__(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/gzip.py", line
46, in __call__
await self.app(scope, receive, self.send_with_compression)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/base.py", line
198, in __call__
raise app_exc
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/base.py", line
144, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/exceptions.py",
line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/_exception_handler.py",
line 53, in wrapped_app
raise exc
File
"/usr/python/lib/python3.10/site-packages/starlette/_exception_handler.py",
line 42, in wrapped_app
await app(scope, receive, sender)
File
"/usr/python/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py",
line 18, in __call__
await self.app(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/routing.py", line
716, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/routing.py", line
736, in app
await route.handle(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/routing.py", line
462, in handle
await self.app(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/fastapi/applications.py",
line 1135, in __call__
await super().__call__(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/applications.py",
line 107, in __call__
await self.middleware_stack(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line
186, in __call__
raise exc
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line
164, in __call__
await self.app(scope, receive, _send)
File
"/usr/python/lib/python3.10/site-packages/starlette/middleware/exceptions.py",
line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/_exception_handler.py",
line 53, in wrapped_app
raise exc
File
"/usr/python/lib/python3.10/site-packages/starlette/_exception_handler.py",
line 42, in wrapped_app
await app(scope, receive, sender)
File
"/usr/python/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py",
line 18, in __call__
await self.app(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/routing.py", line
716, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/routing.py", line
736, in app
await route.handle(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/starlette/routing.py", line
290, in handle
await self.app(scope, receive, send)
File "/usr/python/lib/python3.10/site-packages/fastapi/routing.py", line
115, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File
"/usr/python/lib/python3.10/site-packages/starlette/_exception_handler.py",
line 53, in wrapped_app
raise exc
File
"/usr/python/lib/python3.10/site-packages/starlette/_exception_handler.py",
line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/python/lib/python3.10/site-packages/fastapi/routing.py", line
101, in app
response = await f(request)
File "/usr/python/lib/python3.10/site-packages/fastapi/routing.py", line
345, in app
solved_result = await solve_dependencies(
File
"/usr/python/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line
643, in solve_dependencies
solved = await call(**solved_result.values)
File
"/opt/airflow/airflow-core/src/airflow/api_fastapi/auth/managers/simple/utils.py",
line 34, in parse_login_body
body = await request.json()
File "/usr/python/lib/python3.10/site-packages/starlette/requests.py",
line 251, in json
self._json = json.loads(body)
File "/usr/python/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/python/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/python/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2026-01-07T12:02:29.543434Z [error ] JWT token is not valid: Not enough
segments [airflow.api_fastapi.auth.managers.base_auth_manager]
loc=base_auth_manager.py:114
INFO: 172.18.0.1:39466 - "GET / HTTP/1.1" 200 OK
2026-01-07T12:02:29.713162Z [error ] JWT token is not valid: Not enough
segments [airflow.api_fastapi.auth.managers.base_auth_manager]
loc=base_auth_manager.py:114
2026-01-07T12:02:29.713782Z [error ] JWT token is not valid: Not enough
segments [airflow.api_fastapi.auth.managers.base_auth_manager]
loc=base_auth_manager.py:114
INFO: 172.18.0.1:39466 - "GET /ui/config HTTP/1.1" 403 Forbidden
2026-01-07T12:02:29.727864Z [error ] JWT token is not valid: Not enough
segments [airflow.api_fastapi.auth.managers.base_auth_manager]
loc=base_auth_manager.py:114
INFO: 172.18.0.1:39466 - "GET
/api/v2/auth/login?next=http%3A%2F%2Flocalhost%3A28080%2F HTTP/1.1" 307
Temporary Redirect
2026-01-07T12:02:29.733658Z [error ] JWT token is not valid: Not enough
segments [airflow.api_fastapi.auth.managers.base_auth_manager]
loc=base_auth_manager.py:114
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]