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 }}
Repository navigation
Commit c8f8ea2
Browse filesBrowse the repository at this point in the historyBrowse files
fix: raise InvalidResponseBodyError for every unparsable response body (#1109)
Only `KeyValueStoreClient.get_record()` raised
`InvalidResponseBodyError`. Every other method parses through
`response_to_dict()` / `response_to_list()`, so a malformed JSON body
came out as a bare `json.JSONDecodeError`. Both helpers now raise
`InvalidResponseBodyError` and chain the decode error as its cause,
which matches the JS client.
`InvalidResponseBodyError` now subclasses `ValueError` as well as
`ApifyClientError`, so code that catches `ValueError` today still
catches it. A body that parses but has the wrong shape (a list where a
dict is expected) still raises a plain `ValueError`, same as in JS.
Closes: #1094
*✍️ Drafted by Claude Code*
0 commit comments