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

Cannot connect directly to the VM service #17

Open
intfract opened this issue Jun 24, 2023 · 4 comments
Open

Cannot connect directly to the VM service #17

intfract opened this issue Jun 24, 2023 · 4 comments

Comments

@intfract
Copy link

Error

Terminal

An Observatory debugger and profiler on Chrome is available at: http://127.0.0.1:36805/XXXXXXXXXXX=
Flutter Web Bootstrap: Programmatic
The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:36805/XXXXXXXXXXX=/
ERROR - 2023-06-24 03:29:58.512945
GET /XXXXXXXXXXX%3D
Error thrown by handler.
Invalid argument(s): handlerPath "/XXXXXXXXXXX=/" must be a prefix of requestedUri path "/XXXXXXXXXXX"
package:shelf/src/request.dart 258:20  Request.change
package:dds/src/dds_impl.dart 250:29   DartDevelopmentServiceImpl._authCodeMiddleware.<fn>

Gitpod Link Message

Cannot connect directly to the VM service as a Dart Development Service (DDS) instance has taken control and can be found at http://127.0.0.1:36805/XXXXXXXXXXX=/.

Description

I have made no changes to the repo in Gitpod. I have only entered the flutter run command and selected device 2 to run my flutter app on chrome.

  • Brave Browser
  • Gitpod Browser (Visual Studio Code)

I don't know what authentication code to use.

@intfract
Copy link
Author

I am new to Flutter but not Gitpod and Dart. I appreciate any help or solution to this issue.

@axonasif
Copy link
Member

Hi @intfract, thanks for reporting, I'll take a look when I can.

@intfract
Copy link
Author

For now, I am relying on a workaround that uses NoVNC. The 6080 port exposes a Linux VM in the browser if the Dart extension is installed properly.

@intfract
Copy link
Author

@axonasif can you at least tell me which ports to use. I can't rely on the slow noVNC page to test my chrome build. There are like 10 ports on Gitpod when I run my project. The flutter devtools port can't connect to the link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants