Open JoseRFJuniorLLMs opened 9 years ago
Seeing this also
Update package.json (dependencies version are too old), run npm install and backend will work. (just figured it out)
i cloned this proj,but not work when i use npm server.js
,the error is Error: failed to connect to [undefined:27017]
,how can i fix it?
update mongoose
@clownvary
To solve the "error is Error: failed to connect to [undefined:27017]", needs to pass the valid path URL of mongo database. In another case, you can replace it with the localy installed mongo database. Replace the mongoose connection URL with:
mongoose.connect('mongodb://localhost/databasename');
It work for me.
OPTIONS /signin 200 0.413 ms - 4 [TypeError: Cannot set property 'iat' of undefined] POST /signin - - ms - - [TypeError: Cannot set property 'iat' of undefined] POST /signin - - ms - - OPTIONS /signin 200 0.617 ms - 4 [TypeError: Cannot set property 'iat' of undefined] POST /signin - - ms - - [TypeError: Cannot set property 'iat' of undefined] POST /signin - - ms - -