erikras / erikras/react-redux-universal-hot-example

Error: ECONNREFUSED with Parse BaaS

Open
#891 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Hello!
I'm trying to incorporate the Parse SDK along with `parse-express-cookiesession` and `parse-express-https-redirect`. I instantiate parse in the server.js file like so:

```
var Parse = require('parse/node').Parse;
exports.Parse = Parse;
Parse.initialize('parseappid', 'javascriptid');
```

And then, in api.js I use the following for session handling:

```
var parseExpressCookieSession = require('parse-express-cookie-session');
var parseExpressHttpsRedirect = require('parse-express-https-redirect');

app.use(parseExpressHttpsRedirect());
app.use(express.cookieParser('SECRET_KEY'));
app.use(parseExpressCookieSession({ cookie: { maxAge: 3600000 } }));
```

When I do, I get the following error:

```
proxy error { [Error: connect ECONNREFUSED 127.0.0.1:3030]
[1] code: 'ECONNREFUSED',
[1] errno: 'ECONNREFUSED',
[1] syscall: 'connect',
[1] address: '127.0.0.1',
[1] port: 3030 }
```

Can someone please help me find out what is going on?

Contributor guide

Open the contributing guide

Research direction

Start by reading server.js for Parse initialization and api.js for the cookie-session and HTTPS-redirect middleware. Reproduce the ECONNREFUSED 127.0.0.1:3030 error with the listed Parse and Express packages, then identify and verify the cause of the refused connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, node.js
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.