Skip to content

Commit

Permalink
Handle socket resolution error
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillplatonov committed May 21, 2024
1 parent fa4dbaa commit b7a7904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shopify_graphql/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def execute(query, **variables)
Response.new(handle_response(e.response))
rescue JSON::ParserError => e
raise ServerError.new(e, "Invalid JSON response")
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNREFUSED, Errno::ENETUNREACH, Net::ReadTimeout, Net::OpenTimeout, OpenSSL::SSL::SSLError, EOFError => e
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNREFUSED, Errno::ENETUNREACH, Net::ReadTimeout, Net::OpenTimeout, OpenSSL::SSL::SSLError, EOFError, Socket::ResolutionError => e
raise ServerError.new(e, "Network error")
end

Expand Down

0 comments on commit b7a7904

Please sign in to comment.