Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse LiveQuery not working on Digitalocean #3142

Closed
aalshaikh opened this issue Nov 30, 2016 · 1 comment
Closed

Parse LiveQuery not working on Digitalocean #3142

aalshaikh opened this issue Nov 30, 2016 · 1 comment

Comments

@aalshaikh
Copy link

I am running Parse server on Digitalocean with liveQuery every time when the application trying to connect to websockets i got this error:

WebSocket connection to 'ws://xxx.xxxx.com/api' failed: Error during WebSocket handshake: Unexpected response code: 403

Everything else is working fine in my app just livequery not working and when i am trying to run the application and parse server locally it's working fine and live working fine on locally.

My index.js for parse is:

var app = new ParseServer({
databaseURI: databaseUri || database.url,
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || appid,
masterKey: process.env.MASTER_KEY || masterkey,
serverURL: process.env.SERVER_URL || serverurl,
javascriptKey: jsKey,
restAPIKey: restapi,
facebookAppIds: fbid,
liveQuery: {
classNames: ["conversations", "messages"]
},
});

var port = process.env.PORT || 80;
var httpServer = require('http').createServer(app);
httpServer.listen(port, function() {
console.log('parse-server-example running on port ' + port + '.');
});

// This will enable the Live Query real-time server
ParseServer.createLiveQueryServer(httpServer);

Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.

  • Server
    • parse-server version (Be specific! Don't say 'latest'.) : 2.2.24
    • Operating System: Ubuntu 14.04.4 x64
    • Hardware: DELL with hardware RAID, 32-64GB
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Digital Ocean
@hramos
Copy link
Contributor

hramos commented Feb 10, 2017

If you can drill this down to a particular issue with Parse Server, please open a new issue. We're unable to troubleshooting individual deployments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants