Skip to content

Port not being mapped on HTTP request #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CodeGenie1 opened this issue Mar 7, 2019 · 6 comments
Closed

Port not being mapped on HTTP request #101

CodeGenie1 opened this issue Mar 7, 2019 · 6 comments

Comments

@CodeGenie1
Copy link

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.)

@phillwiggins
Copy link
Member

phillwiggins commented Mar 7, 2019 via email

@RodrigoSMarques
Copy link
Contributor

Hello, CodeGenie1.

I also use Parse Server on ports other than the default.

I have 3 applications on the same server and each on your port.

I use Nginx to do the redirect of the endpoint/url to the respective port.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 7, 2019 via email

@CodeGenie1
Copy link
Author

Hi Phill,
I hope you don't mind me leaving this one with you for the next release. I'm still learning Flutter\dart\Git, having done C#/WPF enterprise and subversion most of my career !. I'm working with a colleague to convert an exising Android App to Flutter Dart, and it uses Parse, hence my interest. Have most of the Parse stuff working fine, so many thanks for developing the library.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 7, 2019 via email

@phillwiggins
Copy link
Member

This has been fixed in version 1.0.16. This will be released shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants