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
While working on bubbling up more contextual data about error conditions (mostly on the HTTP transport) I discovered that error responses are being handled as successful, and then rejected as part of that processing. This (I think) is a result of how batches are handled. However, when handling a standalone response object, this resulted in not being able to directly catch the rejection, as well as the result event being emitted, if you are using the event emitter.
To Reproduce
Steps to reproduce the behavior:
Request a method that results in an error response.
Witness it is processed as a response, and then rejected.
Expected behavior
The response should be handled as an error at the outset.
Desktop (please complete the following information):
OS: Linux, Android and iOS
Browser: Firefox
Version 109.0.1
Additional context
This is fixed as part of my overall error handling improvements on #307
The text was updated successfully, but these errors were encountered:
Describe the bug
While working on bubbling up more contextual data about error conditions (mostly on the HTTP transport) I discovered that error responses are being handled as successful, and then rejected as part of that processing. This (I think) is a result of how batches are handled. However, when handling a standalone response object, this resulted in not being able to directly catch the rejection, as well as the result event being emitted, if you are using the event emitter.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The response should be handled as an error at the outset.
Desktop (please complete the following information):
Additional context
This is fixed as part of my overall error handling improvements on #307
The text was updated successfully, but these errors were encountered: