Description
Issue Description
When I launch my parse server I got a warning
WARNING, Unable to connect to 'https://my.url/myserver/'. Cloud code and push notifications may be unavailable!
But my server is running, I can see datas, edit and read them in my parse dashboard and console.log put in cloud code file works.
I don't use push notification so I can't test them...
A precision, I change the domain name recently and change from a self signed certificate (letsencrypt) to a commercial certificate.
But every configuration linked to the old domain has been deleted in nginx and in every files linked to parse (I think so...)
I launch my parse server with pm2 and ecosystem.json :
{
"apps" : [{
"name" : "parse-wrapper",
"script" : "server.js",
"watch" : false,
"merge_logs" : true,
"cwd" : "/home/parse"
}]
}
and server.js :
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var path = require('path');
var app = express();
var api = new ParseServer({
databaseURI: 'mongodb://user:pwd@my.url:mgport/ddb?ssl=true',
cloud: '/home/parse/cloud/main.js',
verbose: true,
appId: 'xxx',
masterKey: 'xxx',
restApiKey:'xxx',
javascriptKey:'xxx',
clientKey:'xxx',
fileKey: 'xxx',
serverURL: 'https://my.url/parse/',
liveQuery: {
classNames: ['MyClass']
}
});
app.use('/parse/', api);
var port = process.env.PORT || 1337;
var httpServer = require('http').createServer(app);
httpServer.listen(port, function() {
console.log('parse-server running on port ' + port + '.');
ParseServer.createLiveQueryServer(httpServer);
});
EDIT : I fix the issue by using http instead of https in the serverURL parameter and using localhost instead of the domain url, but I don't understand why, it was working before with https with my old domain name
serverURL: 'http://localhost:1337/parse/'
Steps to reproduce
launch the server task with PM2
Expected Results
No warning...
Actual Outcome
get a warning
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 2.7.1
- Operating System: Ubuntu 14.04 nvm & node 9.4.0
- Hardware: DigitalOcean 1GB Memory
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): DigitalOcean
-
Database
- MongoDB version: 3.0.15
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): DigitalOcean
Logs/Trace
WARNING, Unable to connect to 'https://my.url/myserver/'. Cloud code and push notifications may be unavailable!