Skip to content

Commit

Permalink
Handle Errno::ENETUNREACH
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillplatonov committed Apr 18, 2024
1 parent 6c86383 commit e793d88
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, 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 => e
raise ServerError.new(e, "Network error")
end

Expand Down

0 comments on commit e793d88

Please sign in to comment.