-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Websocket connections no longer work #4047
Comments
It is reproducible only in VS Code right? not in Theia? Hm, nope probably in both. |
Same problem with Theia |
I am having the same issue when trying to display gtk apps via Broadway |
Just want to mention that in some cases websockets work fine. I have a demo using https://github.com/xtermjs/xterm.js/ with powered by websocket connection and it works fine. On the other side, gdk broadway does not work. You could reproduce it sing gitpod/workspace-full - type |
|
Although I was able to reproduce both cases I couldn't figure out what causes the issue. Seems like ws-proxy has issues with the websocket server's response as it logs.
And the returns 404. |
I think it is a bug in spring-boot and broadwayd. Caddy rewrites headers like from Relevant issue in Caddy was closed as no fix: caddyserver/caddy#3888 (comment) It used to work before because in Nginx config we will pass |
@Artur- Could you file an issue for spring-boot to treat http headers case-insensitive? |
Sorry, but that makes little sense to me. It would be in the form of "That guy over there said that headers are treated incorrectly in some case in Spring Boot. If you want more info, ask that guy over there. I am just trying to use their IDE". Of course I can do it but filing an issue with relevant details sounds like it has much higher odds of getting fixed. |
ok, filed an issue: spring-projects/spring-boot#26811 |
@akosyakov thank you, I will test with a version having that fix and I will let you know. |
Thanks @akosyakov 🧡 |
@akosyakov will #4419 be sufficient to avoid the issue? It seems like that gitpod does not support ubuntu:21.04 which contains the broadway fix, thus I was unable to test. |
a work-around for servers which does not respect case-insensitive headers, see #4047 (comment)
@yyoncho yes |
a work-around for servers which does not respect case-insensitive headers, see #4047 (comment)
a work-around for servers which does not respect case-insensitive headers, see #4047 (comment)
Broadway works fine using the latest gitpod deployment. Thank you! |
spring-projects/spring-boot#26813 is now merged, so the issue with spring-boot should be resolved. |
a work-around for servers which does not respect case-insensitive headers, see gitpod-io#4047 (comment)
Bug description
A Vaadin application in development uses a websocket connection to provide live reload capabilities. The live reload server listens to port 35729, which is indicated in the lower right corner in the Gitpod UI:
Ports: 33411, 35729, 3799, 8080, 45049
.Port 35729 should be mapped to e.g.
However, establishing a connection to
wss://35729-jade-turkey-nd11myav.ws-eu03.gitpod.io/
fails without any other information in the browser console thanWebSocket connection to 'wss://35729-jade-turkey-nd11myav.ws-eu03.gitpod.io/' failed
.An additional note is that a websocket connection is also established to
wss://8080-jade-turkey-nd11myav.ws-eu03.gitpod.io/vaadinServlet/?v-r=push&refresh_connection
and this one works properlySteps to reproduce
Expected behavior
The dev mode indicator in the lower right corner has a full green circle, not a half red half green.
The browser console has no errors
Example repository
https://github.com/vaadin/skeleton-starter-flow-spring
Anything else?
This has worked before
The text was updated successfully, but these errors were encountered: