-
Notifications
You must be signed in to change notification settings - Fork 230
Status 422 for http post in Angular 6 #216
Comments
@angelitoTalens did you get to the bottom of this? |
This is working fine for me in v7, how did you setup your in memory data service? |
mock-api.service.ts
In app.module.ts
|
could you try this instead?
|
your suggestion worked for me.
|
Encountered this error: when doing a post using: Angular 7 here is what the "param" consists of User gives details in the form |
Encountered this error:
body:error:"Collection 'login' id type is non-numeric or unknown. Can only generate numeric ids."
status:422
statusText:"Unprocessable Entity"
when doing a post using:
const options = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) };
const body = JSON.stringify({email: email, password: password});
return this.http.post<boolean>(apiUrl, body, options);
The text was updated successfully, but these errors were encountered: