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
|
end
|
||||||
|
|
||||||
def get(path, params = {})
|
def get(path, params = {})
|
||||||
|
tries = 0
|
||||||
|
begin
|
||||||
response = conn.get(path) do |req|
|
response = conn.get(path) do |req|
|
||||||
req.headers.update(auth_headers)
|
req.headers.update(auth_headers)
|
||||||
req.params.update(params)
|
req.params.update(params)
|
||||||
end
|
end
|
||||||
unwrap!(response)
|
unwrap!(response)
|
||||||
|
rescue Faraday::SSLError, Faraday::ConnectionFailed, Faraday::TimeoutError
|
||||||
|
tries += 1
|
||||||
|
raise if tries >= 5
|
||||||
|
|
||||||
|
sleep 2
|
||||||
|
retry
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def post(path, body)
|
def post(path, body)
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 720 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Reference in New Issue
Block a user