Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. #11893

Closed
monaka opened this issue Nov 11, 2018 · 4 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@monaka
Copy link
Member

monaka commented Nov 11, 2018

Description

It should not be uncaught expception.

Reproduction Steps

Open new workspace.
But it may be caused by timing issues.

OS and version:

ChromeOS Version 70.0.3538.76 (Official Build) (64-bit)

Che nightly build.

Diagnostics:

Uncaught (in promise) DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
    at a.send (https://che-camino.c.pizzafactory.jp/workspace-loader/loader/bundle.js:1:12170)
    at e.send (https://che-camino.c.pizzafactory.jp/workspace-loader/loader/bundle.js:1:9115)
    at e.request (https://che-camino.c.pizzafactory.jp/workspace-loader/loader/bundle.js:1:969)
    at e.request (https://che-camino.c.pizzafactory.jp/workspace-loader/loader/bundle.js:1:15982)
    at e.fetchClientId (https://che-camino.c.pizzafactory.jp/workspace-loader/loader/bundle.js:1:14937)
    at https://che-camino.c.pizzafactory.jp/workspace-loader/loader/bundle.js:1:14055
send @ index.js:189
e.send @ websocket-client.ts:102
e.request @ json-rpc-client.ts:117
e.request @ che-json-rpc-api-service.ts:85
e.fetchClientId @ che-json-rpc-master-api.ts:220
(anonymous) @ che-json-rpc-master-api.ts:123
Promise.then (async)
e.connect @ che-json-rpc-master-api.ts:122
(anonymous) @ che-json-rpc-master-api.ts:51
(anonymous) @ websocket-client.ts:107
e.callHandlers @ websocket-client.ts:107
(anonymous) @ websocket-client.ts:51
@skabashnyuk
Copy link
Contributor

Is this reproducible?

@skabashnyuk skabashnyuk added the kind/question Questions that haven't been identified as being feature requests or bugs. label Nov 13, 2018
@monaka
Copy link
Member Author

monaka commented Nov 14, 2018

Yes in my environment, Azure AKS. Possibly environment dependent. I'm not sure but I suspect it is caused by Ingress. Since it requires a few minutes to respond Ingress. I'm writing patches now.

@skabashnyuk
Copy link
Contributor

@vitaliy-guliy @evidolob @ashumilova wdyt? Looks like this comes from workspace-loader app.

@ashumilova ashumilova added kind/bug Outline of a bug - must adhere to the bug report template. team/ide2 and removed kind/question Questions that haven't been identified as being feature requests or bugs. labels Dec 3, 2018
@ashumilova
Copy link
Contributor

Taking this bug for investigation to our technical debt list.

vparfonov pushed a commit that referenced this issue Jan 28, 2019
* Use `const` instead of `let` if it can.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Use updated authentication tokens always (refs #12042).

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Wait for the reconnection established. (refs #11893)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Catch the unhandled Promise.reject().

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
skabashnyuk pushed a commit to skabashnyuk/che that referenced this issue Mar 11, 2020
* Use `const` instead of `let` if it can.

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Use updated authentication tokens always (refs eclipse-che#12042).

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Wait for the reconnection established. (refs eclipse-che#11893)

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>

* Catch the unhandled Promise.reject().

Signed-off-by: Masaki Muranaka <monaka@monami-ya.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants