Skip to content

Can't connect to remote parse server on iOS (local works) #1341

@markuswinkler

Description

@markuswinkler

I have a rather strange issue, I can perfectly fine connect to my local parse-server instance but not to the remote one on iOS.
I always get this error upon facebook login:

[Error]: {
    code = 100;
    message = "XMLHttpRequest failed: \"Unable to connect to the Parse API\"";
} (Code: 141, Version: 1.13.0)

This are my connection settings, first one always works, second one always fails:

if SystemSettings.instance.localServer {
     let configuration = ParseClientConfiguration {
            $0.applicationId = ParseID
            $0.clientKey = ParseKey
            $0.server = "http://10.0.1.30:1337/parse"
     }
     Parse.initializeWithConfiguration(configuration)
} else {
     let configuration = ParseClientConfiguration {
            $0.applicationId = ParseID
            $0.clientKey = ParseKey
            $0.server = "http://xxxxxxxxxx.us-east-1.elasticbeanstalk.com/parse"
     }
    Parse.initializeWithConfiguration(configuration)
}           

Note: doesn't matter if the url ends with "parse/" or "parse".
Note 2: The elastic beanstalk environment is an exact mirror of the local installation.
Note 3: serverURL is set on both

To add insult to injury, parse dashboard works perfectly fine for BOTH settings.
A cURL test call also works perfectly fine.
This is really odd.

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