parse-community / parse-server-example

Example of Parse Server using the express framework.

Home Page:http://parseplatform.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to connect to <my_app_name>.herokuapp.com port 1337: Connection refused

codelabspro opened this issue · comments

Deployed this successfully on heroku at <my_app_name>.herokuapp.com

However, when I run (from my localhost)

==> curl -X GET -H "X-Parse-Application-Id: <my_server>" -H "Content-Type: application/json" -d '{}' https://<my_app_name>.herokuapp.com:1337/parse/classes/WallPost

I get the following error
curl: (7) Failed to connect to <my_app_name>.herokuapp.com port 1337: Connection refused

I even tried to set PORT env variable as follows

==> heroku config:set PORT=1337
Setting PORT and restarting ⬢ <my_app_name>... done, v6
PORT: 1337

But it returns the same error.

@codesdk
You should use serverUrl without port: https://<my_app_name>.herokuapp.com/parse/classes/WallPost