-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
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
Labels
No labels