Skip to content

Parse-server is unable to connect on any port rather than 1337 #4980

Description

@suryamuppalla

Hi,

If we run our node server on port 8080, then the parse-server is unable to connect to this port.
It is still expecting the port 1337 and localhost.

serverURL: process.env.SERVER_URL || 'http://localhost:8080/parse', // Don't forget to change to https if needed

// Serve the Parse API on the /parse URL prefix
const mountPath = process.env.SERVER_URL || process.env.PARSE_MOUNT || 'http://localhost:8080/parse';
app.use(mountPath, api);

When I access any API endpoint, it is showing as like below.

{
"code": "ECONNREFUSED",
"errno": "ECONNREFUSED",
"syscall": "connect",
"address": "127.0.0.1",
"port": 1337
}

and also in console it is showing like,

WARNING, Unable to connect to 'http://localhost:8080/parse'. Cloud code and push notifications may be unavailable!

Please help me out! Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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