eclipse-theia/theia

Error: Connection got disposed on exit the browser

Open

#8939 opened on Jan 12, 2021

View on GitHub
 (5 comments) (0 reactions) (0 assignees)TypeScript (18,676 stars) (2,478 forks)batch import
corehelp wantedlogging

Description

Bug Description:

When a user close the browser we get this error:

Error: Connection got disposed.
    at Object.dispose (/theia/node_modules/vscode-jsonrpc/lib/main.js:904:25)
    at /theia/node_modules/vscode-ws-jsonrpc/lib/socket/connection.js:14:41
    at CallbackList.invoke (/theia/node_modules/vscode-jsonrpc/lib/events.js:62:39)
    at Emitter.fire (/theia/node_modules/vscode-jsonrpc/lib/events.js:121:36)
    at closeHandler (/theia/node_modules/vscode-jsonrpc/lib/main.js:240:26)
    at CallbackList.invoke (/theia/node_modules/vscode-jsonrpc/lib/events.js:62:39)
    at Emitter.fire (/theia/node_modules/vscode-jsonrpc/lib/events.js:121:36)
    at WebSocketMessageReader.fireClose (/theia/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
    at WebSocketMessageReader.fireClose (/theia/node_modules/vscode-ws-jsonrpc/lib/socket/reader.js:67:19)
    at /theia/node_modules/vscode-ws-jsonrpc/lib/socket/reader.js:24:18

I found this issue on the vscode-jsonrpc package that may be connected.

Steps to Reproduce:

  1. Run server locally
  2. Open theia in the browser
  3. Close theia browser
  4. See the error on the server logs

Additional Information

  • Operating System: Local
  • Theia Version: master

Contributor guide