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
[javascript] Fix thrown error message when API status code is unknown (#1160)
## Motivation
The response body was not read correctly, causing the SDK to throw
errors like `Message: "Unknown API Status Code! Body: "[object
Object]"`. This happens when the API returns an unexpected status code
(like 500) or when the content type is not defined.
## Solution
Using `await response.body.text()` should return the actual response
body.
0 commit comments