Skip to content

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

Closed

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)

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    P2Important issues not at the top of the work list
    on Mar 21, 2023
  2. christopherfujino commented on Mar 21, 2023

    @christopherfujino
    ContributorAuthor

    Per https://www.ietf.org/rfc/rfc793.txt Section 3.1 TCP ports should be 16-bit numbers (0-65535)

  3. github-actions commented on Apr 10, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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