Sitelet https://github.com/flutter/flutter/issues/118609
Skip to content

"flutter attach --machine" provides a malformed VM Service URI #118609

Description

@DanTup

The wsUri printed when using flutter attach --machine appears to be malformed:

danny@Dannys-MacBook-Pro flutter_counter % flutter attach --machine -d iPhone --debug-url http://127.0.0.1:49606/h-O0daymeDM=/
[{"event":"daemon.connected","params":{"version":"0.6.1","pid":2769}}]
[{"event":"app.start","params":{"appId":"f0197a9d-8d92-40e6-839a-61d561321b8e","deviceId":"A1F0E6A3-DBEA-4CBE-BACE-3893023E5897","directory":null,"supportsRestart":true,"launchMode":"attach"}}]
[
	{
		"event": "app.debugPort",
		"params": {
			"appId": "f0197a9d-8d92-40e6-839a-61d561321b8e",
			"port": 49606,
	######## wsUri looks wrong here
			"wsUri": "ws://127.0.0.1:49606/h-O0daymeDM=/.,/ws",
			"baseUri": "file:///Users/danny/Library/Developer/CoreSimulator/Devices/A1F0E6A3-DBEA-4CBE-BACE-3893023E5897/data/Containers/Data/Application/B788D5FE-81AD-487E-9B95-8EA6357DFF65/tmp/flutter_counterFG3CJR/flutter_counter/"
		}
	}
]

The wsUri returned is ws://127.0.0.1:49606/h-O0daymeDM=/.,/ws but I would expect it to be ws://127.0.0.1:49606/h-O0daymeDM=/ws.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

toolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions