This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Status 422 for http post in Angular 6 #216
Open
Description
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:
- Angular 6
- angular-in-memory-web-api 0.6.1
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);
Metadata
Metadata
Assignees
Labels
No labels