Skip to content

Commit

Permalink
raise exceptions on faraday error responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsharp committed Sep 19, 2024
1 parent 45f48c9 commit 30f342c
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 30f342c

Please sign in to comment.