Riprova le GET Hetzner su errori SSL transitori e aggiunge i loghi con nome.
Durante il wait del CPX l'API chiudeva la connessione TLS; i tre PNG servono le varianti dark/white del marchio. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -139,11 +139,20 @@ module Streams
|
||||
end
|
||||
|
||||
def get(path, params = {})
|
||||
response = conn.get(path) do |req|
|
||||
req.headers.update(auth_headers)
|
||||
req.params.update(params)
|
||||
tries = 0
|
||||
begin
|
||||
response = conn.get(path) do |req|
|
||||
req.headers.update(auth_headers)
|
||||
req.params.update(params)
|
||||
end
|
||||
unwrap!(response)
|
||||
rescue Faraday::SSLError, Faraday::ConnectionFailed, Faraday::TimeoutError
|
||||
tries += 1
|
||||
raise if tries >= 5
|
||||
|
||||
sleep 2
|
||||
retry
|
||||
end
|
||||
unwrap!(response)
|
||||
end
|
||||
|
||||
def post(path, body)
|
||||
|
||||
Reference in New Issue
Block a user