Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React > Unable to add user. #8

Open
naseemfico opened this issue Feb 23, 2019 · 3 comments
Open

React > Unable to add user. #8

naseemfico opened this issue Feb 23, 2019 · 3 comments

Comments

@naseemfico
Copy link

naseemfico commented Feb 23, 2019

I have followed full instruction and was able to add Movies and Edit them perfectly. However, when I trying ADDING (Post) user while all my configuration is perfect and according to Mosh... I keep on getting "Server responded with a status of 500 (Internal Server Error). Also on node.js command prompt screen I am getting following error.

error: bcrypt.genSalt is not a function TypeError: bcrypt.genSalt is not a function
at router.post (C:\React\vidly-api-node\routes\users.js:21:29)

I user Google extention Postman and same issue there too.

However, when I added user manually in Mongodb and add same record through Vidly it caught the recod and threw User Already Exit message.

@unaun
Copy link

unaun commented Apr 17, 2019

In vidly-api-node/package.json change the version of bcrypt in "^3.0.6" (last version) then run npm i

@ybakhshi
Copy link

ybakhshi commented Feb 2, 2020

@naseemfico did you resolve this issue. because i encounter the same now

@tomas-levcik
Copy link

unaun solution works in package.json replace bcrypt with "bcrypt": "^3.0.8", / today actual version / run npm i and everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants