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
{{ message }}
Repository navigation
DirectlineStreaming: Errors on disconnect are written to console #414
When disconnecting a connection that has pending requests, the infra botframework-streaming package rejects all the requests with "Disconnect was called" error.
It looks like the botframework-directlinejs package writes this error to the console instead/in addition to emitting an error event to the application.
This bypasses our logging system, and should not be done by libraries.
I suspect the console log comes from here or from here.
There are other calls to console.warn and console.error in the library. They should be replaced where possible with proper error propagation.
Another issue with this reject - nobody catches it, and it is not propagated to the application. So every call to end results in unhandled promise rejection.
Activity
orgads commentedon Oct 18, 2023
Another issue with this reject - nobody catches it, and it is not propagated to the application. So every call to end results in unhandled promise rejection.
stevkan commentedon Apr 22, 2024
Orgad Shaneh (@orgads) - Thank you for your patience and for advising on this issue. We will have a dev take a look at this and decide on next steps.