When I start the project using Glitch or clone the github repo I get an error straight away in the console log which prevents the index.html to load. I didn’t touch any code even. Tried starting the project multiple times with the link but still get the same error.
The error from the console log:
(node:3432) DeprecationWarning: open()
is deprecated in mongoose >= 4.11.0, use openUri()
instead, or set the useMongoClient
option if using connect()
or createConnection()
. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
4:44 PM
Your app is listening on port 3000
4:44 PM
4:44 PM
events.js:160
4:44 PM
throw er; // Unhandled ‘error’ event
4:44 PM
^
4:44 PM
MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
4:44 PM
at Pool. (/rbd/pnpm-volume/69317b90-ccc6-4359-b8b2-ada3af033012/node_modules/.registry.npmjs.org/mongodb-core/2.1.18/node_modules/mongodb-core/lib/topologies/server.js:336:35)
4:44 PM
at emitOne (events.js:96:13)
4:44 PM
at Pool.emit (events.js:188:7)
4:44 PM
at Connection. (/rbd/pnpm-volume/69317b90-ccc6-4359-b8b2-ada3af033012/node_modules/.registry.npmjs.org/mongodb-core/2.1.18/node_modules/mongodb-core/lib/connection/pool.js:280:12)
4:44 PM
at Connection.g (events.js:292:16)
4:44 PM
at emitTwo (events.js:106:13)
4:44 PM
at Connection.emit (events.js:191:7)
4:44 PM
at Socket. (/rbd/pnpm-volume/69317b90-ccc6-4359-b8b2-ada3af033012/node_modules/.registry.npmjs.org/mongodb-core/2.1.18/node_modules/mongodb-core/lib/connection/connection.js:189:49)
4:44 PM
at Socket.g (events.js:292:16)
4:44 PM
at emitOne (events.js:96:13)
4:44 PM
at Socket.emit (events.js:188:7)
4:44 PM
at emitErrorNT (net.js:1290:8)
4:44 PM
at _combinedTickCallback (internal/process/next_tick.js:80:11)
4:44 PM
at process._tickCallback (internal/process/next_tick.js:104:9)
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
.
Challenge: undefined
Link to the challenge:
https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/exercise-tracker![dfg|690x172]