huseyinbabal / token-based-auth-backend

Token Based Authentication Backend Project Written in NodeJS
177 stars 107 forks source link

erro to sigin #6

Open JoseRFJuniorLLMs opened 9 years ago

JoseRFJuniorLLMs commented 9 years ago

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 - -

dioptre commented 9 years ago

Seeing this also

hurquiza commented 9 years ago

Update package.json (dependencies version are too old), run npm install and backend will work. (just figured it out)

clownvary commented 9 years ago

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?

simdm commented 8 years ago

update mongoose

Ameydesai07 commented 7 years ago

@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.