It's quite old question, but this may help someone in the future: check if your process.env variables aren't undefined. To fix this, you can move dotenv.config(); to connections.js file and use in before makeNewConnection(...) function.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's quite old question, but this may help someone in the future: check if your
process.env
variables aren'tundefined
. To fix this, you can movedotenv.config();
toconnections.js
file and use in beforemakeNewConnection(...)
function.