Skip to content

v1.5.1

Latest

Choose a tag to compare

@koic koic released this 09 Sep 05:45
· 2 commits to main since this release
c6a5512

This release keeps the HTTP client working with json 3.0. That release accepts the options of JSON.parse as keywords only, and Faraday's JSON response middleware, through 2.14.3, passes them as a positional Hash, which Ruby 3 no longer converts, so every JSON body the client received failed as an internal error. The client now parses response bodies itself, the way it already handled streamed ones, and no longer registers the middleware. A malformed JSON body delivered whole by an adapter without streaming support now raises RequestHandlerError with error_type: :parse_error, as the streamed path already did.

Fixed

  • Parse HTTP client response bodies without Faraday's JSON middleware, which json 3.0 breaks (#546)