You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the rejectOnTerminalEvent of xhrHttpClient, when throw error for "error" event, the xhr.response is not passed, instead it passes undefined.
xhr.addEventListener("error", () => reject(new RestError(Failed to send request to ${request.url}, RestError.REQUEST_SEND_ERROR, undefined, request)));
can xhr.response be added to replace undefined above?
So that we can know the details of error to handle it correctly.
The text was updated successfully, but these errors were encountered:
the third parameter of RestError constructor is statusCode. We could pass xhr.response as the last parameter, after request. One concern is that the error response may contain sensitive information and we probably don't want to leak everything in the error?
in the rejectOnTerminalEvent of xhrHttpClient, when throw error for "error" event, the xhr.response is not passed, instead it passes undefined.
xhr.addEventListener("error", () => reject(new RestError(
Failed to send request to ${request.url}
, RestError.REQUEST_SEND_ERROR, undefined, request)));can xhr.response be added to replace undefined above?
So that we can know the details of error to handle it correctly.
The text was updated successfully, but these errors were encountered: