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
Uncaught TypeError: Cannot read properties of undefined (reading '_reject')
at reject (jlab_core.0c882064cb12a87cda90.js?v=0c882064cb12a87cda90:1:1731169)
at we._onClose (392.e7fabd325dafbe2024f7.js?v=e7fabd325dafbe2024f7:1:37258)
at i.onclose (392.e7fabd325dafbe2024f7.js?v=e7fabd325dafbe2024f7:1:37860)
Description
When websocket gets disconnected we see:
Reproduce
This comes from:
jupyter-ai/packages/jupyter-ai/src/completions/handler.ts
Lines 113 to 123 in 3bfce32
Because the reject delegate is not bound to promise instance here:
jupyter-ai/packages/jupyter-ai/src/completions/handler.ts
Line 140 in 3bfce32
Expected behavior
No error in onClose handling.
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: