Repository navigation
Unable to connect to Parse API #199
Description
Activity
Have you configured your process.env.SERVER_URL variable?
I don't know how to set process.env.SERVER_URL. I thought it would be set automatically.
And I could get server log and it was running well.
Have you looked at .ebextensions/app.config file? Myself I run parse-server on Heroku, I set my environmental variables by using external module - https://www.npmjs.com/package/dotenv
I already set environmental variables. Can you show me how to use external module?
If it still doesn't work, I don't know how to help. Perhaps somebody with Elastic Beanstalk expertise will.
Please teach me how to use "dotenv". It might be able to help me.
Please read the instructions on the page I've sent you. I cannot explain any better than that.
Thank you Kasparas42180
Anybody else? Please help meI have same problem. I use amazon EB as hosting. To fix problem i restart application, but problem again repeated.
Logs:
ParseError { code: 100, message: 'XMLHttpRequest failed: "Unable to connect to the Parse API"' }You may check the document here:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions-optionsettings.htmlExample .ebextensions/options.config
option_settings:- option_name: SERVER_URL
value: 'YOUR_SERVER_URL'
- option_name: SERVER_URL

Here is my server configuration. (index.js)

And here is my cloud code. (/cloud/main.js)

For testing, I run this command.
Then I got this message.
{"code":141,"error":"XMLHttpRequest failed: "Unable to connect to the Parse API""}
I tried all reference of Git about this problem but couldn't fix this problem. Please help me.......