typesense/typesense-ruby

Client fails to parse some json response from back-end

honzasterba opened this issue · 1 comments

Description

Depending on the document the used JSON parse fails to parse the response as valid json, tried the same with Faraday client and the reponse is parsed fine.

Steps to reproduce

Run a query, that retunrs attached response
response.json

Expected Behavior

Client should parse that response

Actual Behavior

Client fails parsing the response with

```/Users/honza/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/typesense-0.15.0/lib/typesense/api_call.rb:91:in `load': quoted string not terminated (after hits[119].document.content) at line 1, column 161314 [parse.c:241] (Oj::ParseError)


## Metadata

**Typesense Version**: latest

**OS**: macos

closing as this seems to be upstream issue in typesense, the attached json gets parsed by Oj just fine