The-NodeJS-Master-Class icon indicating copy to clipboard operation
The-NodeJS-Master-Class copied to clipboard

handlers.js

Open Islessian0409 opened this issue 7 years ago • 2 comments

Hello, I am having trouble creating a user on Section 3 - Service 2 Users. Everything is fine as I use postman without putting anything on the body which results to this output {'Error' : 'Missing required fields'} which is right. However, when I provide the values on the body, I followed it exactly as you have provided and still the output is '(Error' : 'Missing required fields'}. I traced and check our codes and they are identical. So I tried to run your code that I downloaded and the same output was displayed. I noticed that on your video on Section 3 - Service 2 Users at 30:53 aside from the body you have a value on the header. If that is what I missed what should I put on the key and value before I press send? Thank you.

Islessian0409 avatar Jun 28 '18 14:06 Islessian0409

Having the same issue is there any solution??

abhinav-official avatar Aug 24 '18 17:08 abhinav-official

Got the solution.. jus put "password" key instead of "hashedPassword" in postman `{ "firstName":"jacck", "lastName":"gaandu", "phone":"1236547898", "password":"asdftrdfghjn", "tosAgreement":true

}`

abhinav-official avatar Aug 24 '18 18:08 abhinav-official