API error: connection timeout
Closed this issue · 1 comments
alex-mendez-crypto commented
Describe the bug
A clear and concise description of what the bug is.
An error occurs while trying to fetch transfers by block:
Block# 815775
To Reproduce
Steps to reproduce the behavior:
- Execute the following command:
curl 'https://api.hiro.so/ordinals/v1/inscriptions/transfers?block=815775&limit=60&offset=360'
- Some times the request succeeds, other times will respond with the following error
upstream connect error or disconnect/reset before headers. reset reason: connection timeout
Expected behavior
API should not return error.
Desktop (please complete the following information):
- OS: macOS ventura 13.6.4]
- Client: curl 8.4.0 (x86_64-apple-darwin22.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0
Additional context
verbose response:
curl 'https://api.hiro.so/ordinals/v1/inscriptions/transfers?block=815775&limit=60&offset=360' -vv
* Trying 104.22.11.232:443...
* Connected to api.hiro.so (104.22.11.232) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=api.hiro.so
* start date: Feb 22 06:47:35 2024 GMT
* expire date: May 22 07:46:32 2024 GMT
* subjectAltName: host "api.hiro.so" matched cert's "api.hiro.so"
* issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1P5
* SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://api.hiro.so/ordinals/v1/inscriptions/transfers?block=815775&limit=60&offset=360
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: api.hiro.so]
* [HTTP/2] [1] [:path: /ordinals/v1/inscriptions/transfers?block=815775&limit=60&offset=360]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /ordinals/v1/inscriptions/transfers?block=815775&limit=60&offset=360 HTTP/2
> Host: api.hiro.so
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/2 503
< date: Wed, 28 Feb 2024 07:15:39 GMT
< content-type: text/plain; charset=UTF-8
< content-length: 91
< ratelimit-reset: 1
< x-ratelimit-limit-second: 40
< x-ratelimit-limit-minute: 100
< ratelimit-remaining: 39
< ratelimit-limit: 40
< x-ratelimit-remaining-second: 39
< x-ratelimit-remaining-minute: 99
< cf-cache-status: BYPASS
< server: cloudflare
< cf-ray: 85c6e0aa4d7a8b5c-ICN
<
* Connection #0 to host api.hiro.so left intact
rafaelcr commented
Hi @alex-mendez-crypto , last night we had an infrastructure outage that disabled our public API but we're back now. Thanks for the report.