typesense / typesense-ruby

Ruby client for Typesense: https://github.com/typesense/typesense
Apache License 2.0
75 stars 8 forks source link

Client fails to parse some json response from back-end #29

Closed honzasterba closed 1 year ago

honzasterba commented 1 year ago

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:inload': 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
honzasterba commented 1 year ago

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