Skip to content

Port # seems to be ignored #2

@mmcdon20

Description

@mmcdon20

I initialize the client endpoint to localhost with a given port.

  final Client _client = Client()
      .setEndpoint('http://localhost:8089/v1')
      .setProject(projectId)
      .setSelfSigned(status: true);

But then when I make any request using the client I get the following error.

E/flutter ( 5606): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: DioError [DioErrorType.DEFAULT]: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 59488

The port number in the error message changes every time a request is made.
Is there some other way of specifying the port number?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions