Open jeroenvervaeke opened 6 years ago
I also have that problem, the flutter_tools cannot establish any WebSocket connections with the VM side, and it behaved just like what this issue described.
My similar problem has been solved, just after removing all http proxy settings, all things performed well.
Environment
Dart VM version: 2.0.0 (Fri Aug 3 10:53:23 2018 +0200) on "linux_x64"
Flutter 0.6.3-pre.14
Intro
I've been working on a very simple application using both flutter and actix-web (rust). As a test I set up a echo websocket server in rust and added a simple websocket in flutter.
Both applications work fine by themselves but not when combined:
ws://echo.websocket.org
works fineIssue
The issue is the following
HTTP/1.1 101 Switching Protocols
I tried to figure out if it was a flutter issue or a dart issue so I boiled the dart code down to the dart code below and I'm still able to reproduce the issue. I also included the wireshark results from both the good and bad request.
Code
Websocket server code:
Http requests
Good request (echo.websocket.org)
Bad request (echo.websocket.org)