Invalid WebSocket upgrade request
See original GitHub issueDescribe the bug
Debug a pure flutter project using debug
code lens.
To Reproduce Steps to reproduce the behavior:
- Go to
lib/main.dart
. - Click on
debug
code lens above main function.
Screenshots
Versions (please complete the following information):
Version: 1.58.0-insider (Universal)
Commit: 6afedfdad59d1f1ba4b614341d21c67775e158a9
Date: 2021-06-21T05:14:03.949Z
Electron: 12.0.11
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Darwin x64 20.5.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
What does "WebSocket upgrade request failed" exception ...
It means the HTTP server does not support WebSockets on that URL. During a WebSocket negotiation, a standard HTTP 1.1 GET request is...
Read more >Invalid Websocket upgrade request #18776 - flutter/flutter
I am getting this error when trying to run a new project on both vscode and android studio: Launching lib/main.dart on Android SDK...
Read more >Entries in web dispatcher pointing to websocket “Invalid ...
If the request is valid then it should return a web socket key. > Invalid HTTP version : Clearly the web socket upgrade...
Read more >Protocol upgrade mechanism - HTTP - MDN Web Docs - Mozilla
Provides information to the server which is needed in order to confirm that the client is entitled to request an upgrade to WebSocket....
Read more >dart/sdk/lib/io/websocket_impl.dart - external/dart
The web socket protocol transformer handles the protocol byte stream ... new WebSocketException("Invalid WebSocket upgrade request"));.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No_PROXY
is to disable the proxy for those hostnames. The goal here was to bypass the proxy for local connections, since they usually cause problems (especially if the proxy was on another machine - since it wouldn’t be able to connect tolocalhost
on your machine).@DanTup After I set the proxy in
.zshrc
, everything goes ok. but It’s strange, where need the proxy when debugging?