parse-server: Unable to call Parse Cloud functions after hosting on Heroku XMLHttpRequest failed: "Unable to connect to the Parse API"
So I am sure the cloud function works because I am able to hit the function by using curl. This is what I ran and it works.
curl -X POST -H "X-Parse-Application-Id: myAppId" -H "Content-Type: application/json" -d '{}' https://xxxx.herokuapp.com/parse/functions/upsert
Here is my client configuration code
import Parse from 'parse/react-native';
Parse.initialize('myAppId');
Parse.serverURL = 'https://xxxx.herokuapp.com/parse/';
I am getting a 100: XMLHttpRequest failed: "Unable to connect to the Parse API"
error most likely due to issues with https
Please let me know what I can do to fix this problem. Thanks!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (5 by maintainers)
+1 I might be experiencing a similar issue. I just updated my parse-server and parse js sdk that is being hosted on Heroku, and now all my cloud code is failing. It works up until I have to query the database for something and then it throws this error
'XMLHttpRequest failed: "Unable to connect to the Parse API"'
.@GGross5213 : Was the URL https or http? I added the URL in serverURL, and it still doesn’t seem to want to work. Any ideas/thoughts?