erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12.01k stars 2.5k forks source link

Error: ECONNREFUSED with Parse BaaS #891

Open ghost opened 8 years ago

ghost commented 8 years ago

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?

nicolabortignon commented 8 years ago

Are you aware that Facebook decided to drop Parse last week? Here the official announcement:

http://blog.parse.com/announcements/moving-on/

Have a look at FireBase by Google, maybe it can be a good replacement for your use case.

ghost commented 8 years ago

@nicolabortignon Yes, I found out about that last week. They did open source their code so it is still usable. However, I am in the early stages, so it wouldn't be difficult for me to switch over to FireBase. Are there any tutorials on how to use FireBase with node (it would be even better if there was a tutorial that uses this boilerplate).

ghost commented 8 years ago

For the time being, I would like to continue with Parse-- I like the functionality it comes with out of the box. Plus, I can migrate to parse-server. Now for the issue I am having at hand, are there any suggestions?