node-restful-api-tutorial icon indicating copy to clipboard operation
node-restful-api-tutorial copied to clipboard

Error message while posting user signup

Open laziestcoder opened this issue 6 years ago • 2 comments

Following error showing while using POST for user/signup error code { "error": { "message": "Cannot read property 'email' of undefined" } }

POST code: { "email":"test", "password": "password" } or { "email":"[email protected]", "password": "password" }

laziestcoder avatar Aug 25 '19 17:08 laziestcoder

Check Header of your http request, it should be

application/json

imsorx avatar Oct 15 '19 21:10 imsorx

I checked it several times. Thanks.

Towfiqul Islam

On Wed, Oct 16, 2019, 3:02 AM Sourabh Patel [email protected] wrote:

Check Header of your http request, it should be

application/json

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/academind/node-restful-api-tutorial/issues/19?email_source=notifications&email_token=AEXHUHP4VMBUY2DEDKY4YKTQOYVVJA5CNFSM4IPJYHX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBKGWHA#issuecomment-542403356, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXHUHKXXUWWA5UCD5XNAATQOYVVJANCNFSM4IPJYHXQ .

laziestcoder avatar Oct 15 '19 21:10 laziestcoder