Can not get the XHR object in catch callback when using the ajax in promise

app.request.promise
  .postJSON("/api/login", {
      email: this.email,
      password: this.password
  })
  .then((...arg) => {
      console.log("then", arg);
  })
  .catch((...arg) => {
      console.log("error", arg);
  });

What I got,
image
Response,
image
The arguments in catch callback have only status code.

It request.promise it returns only status code or message. XHR is not available here. Use usual request with callbacks instead here

1 Like