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
{{ message }}
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
Requests will fail for network errors, or malformed payloads. However, right now typesuite requests succeed on some errors where you might expect failures. For example, if a PO doesn't exist. Using an example from the Readme:
The response does show isSuccess: false, but the error handler doesn't throw.
The open question is: should we throw for isSuccess: false? In REST APIs we usually would, but with SOAP the expectations around error handling might be a bit different.
A better client experience would result in rejected promises for these kinds of errors. And even for errors generally, we probably want a cleaner interface with some custom error types, such that clients need not know about the SOAP implementation details.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Requests will fail for network errors, or malformed payloads. However, right now typesuite requests succeed on some errors where you might expect failures. For example, if a PO doesn't exist. Using an example from the Readme:
The response:
The response does show
isSuccess: false
, but the error handler doesn't throw.The open question is: should we throw for
isSuccess: false
? In REST APIs we usually would, but with SOAP the expectations around error handling might be a bit different.cc @enocom
The text was updated successfully, but these errors were encountered: