Skip to content

Port not being mapped on HTTP request #101

Closed
@CodeGenie1

Description

@CodeGenie1

I have several parse instances running on different ports. When trying to connect to an instance that is not on the default port, all requests fail. It appears that the port number is not being mapped into the HTTP url request. e.g in parse_user.dart login method:

      Uri url = Uri(
          scheme: tempUri.scheme,
          host: tempUri.host,
          path: "${tempUri.path}$keyEndPointLogin",
          queryParameters: {
            keyVarUsername: username,
            keyVarPassword: password
});
Amending this to pass in the port fixes the problem:-
      Uri url = Uri(
          scheme: tempUri.scheme,
          host: tempUri.host,
          **port: tempUri.port,**
          path: "${tempUri.path}$keyEndPointLogin",
          queryParameters: {
            keyVarUsername: username,
            keyVarPassword: password
});

There are several instances in the code where this will need a fix. (parse_user, parse_object etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions