Skip to content

Commit

Permalink
Merge pull request #58 from ajsharp/raise-faraday-exceptions
Browse files Browse the repository at this point in the history
raise exceptions on faraday error responses
  • Loading branch information
andreibondarev authored Sep 19, 2024
2 parents 45f48c9 + 30f342c commit d568425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/weaviate/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def connection
end
faraday.request :json
faraday.response :json, content_type: /\bjson$/
faraday.response :raise_error
faraday.adapter adapter

faraday.headers[API_KEY_HEADERS[model_service]] = model_service_api_key if model_service && model_service_api_key
Expand Down

0 comments on commit d568425

Please sign in to comment.