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
Python version (& distribution if applicable, e.g. Anaconda): 3.12.7
Using VS Code or Visual Studio: Vscode 1.96.2 (through Cursor IDE)
Actual behavior
When debugging an async FastAPI application and stepping through code, sometimes the debugger (and editor) randomly jumps specifically to line 1251 of the built-in ssl.py, inside the function:
defrecv_into(self, buffer, nbytes=None, flags=0):
self._checkClosed()
ifnbytesisNone:
ifbufferisnotNone:
withmemoryview(buffer) asview:
nbytes=view.nbytesifnotnbytes:
nbytes=1024else:
nbytes=1024ifself._sslobjisnotNone:
ifflags!=0:
raiseValueError(
"non-zero flags not allowed in calls to recv_into() on %s"%self.__class__)
returnself.read(nbytes, buffer) # <---- jumps to this lineelse:
returnsuper().recv_into(buffer, nbytes, flags)
This appears to happen in a thread (not the one whose code I'm stepping through), the stack looks like this:
It's similar behaviour to what would happen if I had put a breakpoint on that line of ssl.py and it got hit while I was stepping through code in another thread, except there is no breakpoint.
Expected behavior
Doesn't randomly jump to an unrelated line.
Steps to reproduce:
Really hard, have no idea what triggers this and it's a very complex application. It appears to be related to https://github.com/langchain-ai/langsmith-sdk (as the thread is created and handled by that library), but it doesn't explain the random jumps to the ssl.py file.
The text was updated successfully, but these errors were encountered:
Environment data
Actual behavior
When debugging an async FastAPI application and stepping through code, sometimes the debugger (and editor) randomly jumps specifically to line 1251 of the built-in
ssl.py
, inside the function:This appears to happen in a thread (not the one whose code I'm stepping through), the stack looks like this:
It's similar behaviour to what would happen if I had put a breakpoint on that line of
ssl.py
and it got hit while I was stepping through code in another thread, except there is no breakpoint.Expected behavior
Doesn't randomly jump to an unrelated line.
Steps to reproduce:
Really hard, have no idea what triggers this and it's a very complex application. It appears to be related to https://github.com/langchain-ai/langsmith-sdk (as the thread is created and handled by that library), but it doesn't explain the random jumps to the
ssl.py
file.The text was updated successfully, but these errors were encountered: