Skip to content
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
@angelitoTalens

Description

@angelitoTalens

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions