Skip to content

Crash when invalid date #2856

Description

@hoangtrongphuc

Bug or feature request

  • Bug
  • Feature request

Description of feature (or steps to reproduce if bug)

When I update model relation with invalid date, whole API is crash
Eg: I have Customer model and Customer has many Campaign model, Campaign model have startDate and endDate, when I call API to __updateById__campaigns with invalid date, crash my server

Link to sample repo to reproduce issue (if bug)

Expected result

Catch error and response status code 422

Actual result (if bug)

Crash server and response no content

Additional information (Node.js version, LoopBack version, etc)

Nodejs v6, Loopback v2.34.1

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