Skip to content

Commit 7cabb2e

Browse files
Handle more network errors
1 parent 402701b commit 7cabb2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shopify_graphql/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def execute(query, **variables)
1111
Response.new(handle_response(e.response))
1212
rescue JSON::ParserError => e
1313
raise ServerError.new(e, "Invalid JSON response")
14-
rescue Errno::ECONNRESET, Errno::EPIPE, Net::ReadTimeout, Net::OpenTimeout, OpenSSL::SSL::SSLError => e
14+
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNREFUSED, Net::ReadTimeout, Net::OpenTimeout, OpenSSL::SSL::SSLError, EOFError => e
1515
raise ServerError.new(e, "Network error")
1616
end
1717

0 commit comments

Comments
 (0)