You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Started seeing failed to extract response cookies ValueError : not enough values to unpack when deploying fastapi app with uvicorn and wrapping it with ddtrace-run.
It seems to happen at this line when there is no set-cookie header:
Thanks for the report @ukalwa ! I was also able to reproduce this based on the information you provided.
For now it looks like the failed to extract response cookies message only occurs if the logging module is in DEBUG logging level (which then triggers our tracer to log in debug mode) or ddtrace has debug mode enabled via:DD_TRACE_DEBUG=TRUE . That said, I agree that this is not good behavior.
I'll review next steps with the team (along with your PR).
Tracer Version(s)
2.18
Python Version(s)
3.11
Pip Version(s)
24.3.1
Bug Report
Started seeing failed to extract response cookies ValueError : not enough values to unpack when deploying fastapi app with uvicorn and wrapping it with ddtrace-run.
It seems to happen at this line when there is no set-cookie header:
dd-trace-py/ddtrace/contrib/internal/asgi/middleware.py
Lines 239 to 244 in 6ea56c5
Reproduction Code
No response
Error Logs
No response
Libraries in Use
No response
Operating System
No response
The text was updated successfully, but these errors were encountered: