Closed dclipca closed 4 years ago
You should edit out your username and password from those urls.
You should edit out your username and password from those urls.
It's ok, the database is completely blank and I am using the free version of the addon for testing.
@seiyria, what do you thin might be the issue?
So the fix was a combination of me: 1) Removing a proxy the proxy I was using 2) Using
const port = Number(process.env.PORT || 2567);
instead of
const port = 2567;
The second I think, was the fix.
On the client-side I am now connecting using:
ws://overworld-io-server.herokuapp.com
instead of
ws://overworld-io-server.herokuapp.com:{the_specified_port}
As the title says, I am unable to connect to the mLab MongoDB addon from Heroku. Would be glad to receive any suggestions. My environment variables are as follows:
JWT_SECRET ZSy5CfFW1GiM8xsFtSHA MONGODB_URI mongodb://heroku_0t3t4std:2ffktbkt17r7mc9m4lce1b3prm@ds149433.mlab.com:49433/heroku_0t3t4std MONGO_URI mongodb://heroku_0t3t4std:2ffktbkt17r7mc9m4lce1b3prm@ds149433.mlab.com:49433/heroku_0t3t4std NODE_OPTIONS --max_old_space_size=20480 NPM_CONFIG_PRODUCTION false
The index.ts:
Logs: