Skip to content

[flutter_tools] "ArgumentError: Invalid argument(s): Invalid port" when --web-port provided with invalid port #123147

@christopherfujino

Description

@christopherfujino

On beta/3.9.0-1.0.pre.2
With command: flutter run --machine --start-paused -d chrome --devtools-server-address http://127.0.0.1:9100/ --target lib/main.dart -d chrome --web-renderer html --web-port 603300

ArgumentError: Invalid argument(s): Invalid port 603300
at _throwOnBadPort(socket_patch.dart:120)
at _RawServerSocket.bind(socket_patch.dart:1744)
at _ServerSocket.bind(socket_patch.dart:2030)
at ServerSocket._bind(socket_patch.dart:2021)
at ServerSocket.bind(socket.dart:309)
at _HttpServer.bind(http_impl.dart:3173)
at HttpServer.bind(dart:_http:191)
at WebAssetServer.start(devfs_web.dart:206)
at <asynchronous gap>(async)
at WebDevFS.create(devfs_web.dart:745)
at <asynchronous gap>(async)
at ResidentWebRunner.run.<anonymous closure>(resident_web_runner.dart:281)
at <asynchronous gap>(async)
at asyncGuard.<anonymous closure>(async_guard.dart:111)
at <asynchronous gap>(async)

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listtoolAffects 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