Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Unable to extract error if server return application/problem+json header #427

@lifeart

Description

@lifeart
HTTP/1.1 422 Unprocessable Entity
X-Powered-By: Express
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Server: nginx/1.15.8
Date: Tue, 29 Jan 2019 12:59:45 GMT
Content-Type: application/problem+json
Transfer-Encoding: chunked
Connection: close
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Pragma: no-cache
Expires: 0
Vary: Accept-Encoding
Content-Encoding: gzip
{"type":"/problem-with-message","status":422,"path":"/rest/v1/users","message":"There are no user in scope MA12-AMA"}
"{"stack":"Error: Request was rejected because it was invalid\n    at new EmberError (http://localhost:4300/assets/vendor.js:29044:25)\n    at new AjaxError (http://localhost:4300/assets/vendor.js:127725:13)\n    at new InvalidError (http://localhost:4300/assets/vendor.js:127733:13)\n    at Ajax._createCorrectError (http://localhost:4300/assets/vendor.js:128308:25)\n    at Ajax.handleResponse (http://localhost:4300/assets/vendor.js:128299:25)\n    at Object.jqXHR.done.fail (http://localhost:4300/assets/vendor.js:128151:41)\n    at fire (http://localhost:4300/assets/vendor.js:8116:31)\n    at Object.fireWith [as rejectWith] (http://localhost:4300/assets/vendor.js:8246:7)\n    at done (http://localhost:4300/assets/vendor.js:14155:14)\n    at XMLHttpRequest.<anonymous> (http://localhost:4300/assets/vendor.js:87183:15)","message":"Request was rejected because it was invalid","name":"Error","payload":"Unprocessable Entity","status":422}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions