My URL shortener seems to be working fine EXCEPT:
- I get this error in the log:
(node:12679) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
- When I try to follow the shortened link to the website, I get a 504 Gateway Time-out
I’ve double checked variables and connections between mLab and Glitch, but I can’t find my error.
If somebody can help me sort this out, I’d really appreciate it. I’m almost done with this one.