node-restful-api-tutorial
node-restful-api-tutorial copied to clipboard
Error message while posting user signup
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" }
Check Header of your http request, it should be
application/json
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 .