question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid WebSocket upgrade request

See original GitHub issue

Describe the bug

Debug a pure flutter project using debug code lens.

To Reproduce Steps to reproduce the behavior:

  1. Go to lib/main.dart.
  2. Click on debug code lens above main function.

Screenshots

image

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:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Jun 23, 2021

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 to localhost on your machine).

0reactions
tjx666commented, Jun 23, 2021

@DanTup After I set the proxy in .zshrc, everything goes ok. but It’s strange, where need the proxy when debugging?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found