Consistent 503 Service Unavailable for /videos with sort order

I consistently see HTTP 503s from /videos, but only when giving a sort order.

200

curl "https://api.twitch.tv/helix/videos?game_id=21779&first=100"

503

curl "https://api.twitch.tv/helix/videos?game_id=21779&first=100&sort=trending"
{"error":"Service Unavailable","status":503,"message":""}

Seems ok here.

5xx codes are usually for server issues which are also usually only temporary.

Your particular call looks ok here

Thanks, Barry! I just tried it again and got the same error response. I’ve tried a few dozen calls today with ‘trending’ and none of them have worked.

➜  api git:(master) curl -vvv -H 'Client-ID: REDACTED' -X GET "https://api.twitch.tv/helix/videos?game_id=21779&first=100&sort=trending"
Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying 23.194.159.84...
* TCP_NODELAY set
* Connected to api.twitch.tv (23.194.159.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Twitch Interactive, Inc.; CN=twitch.tv
*  start date: May  8 00:00:00 2018 GMT
*  expire date: Aug  7 12:00:00 2019 GMT
*  subjectAltName: host "api.twitch.tv" matched cert's "*.twitch.tv"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert SHA2 Secure Server CA
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fbdf580c400)
> GET /helix/videos?game_id=21779&first=100&sort=trending HTTP/2
> Host: api.twitch.tv
> User-Agent: curl/7.54.0
> Accept: */*
> Client-ID: REDACTED
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 503
< content-type: application/json; charset=utf-8
< content-length: 57
< server: nginx
< access-control-allow-origin: *
< cache-control: no-cache, no-store, must-revalidate, private
< expires: 0
< pragma: no-cache
< ratelimit-limit: 30
< ratelimit-remaining: 29
< ratelimit-reset: 1555207623
< twitch-trace-id: 777146e782ddf3ef215769d040966d44
< x-ctxlog-logid: 1-5cb295c5-54f8491308f4b29f7b7e1ca4
< timing-allow-origin: https://www.twitch.tv
< date: Sun, 14 Apr 2019 02:07:02 GMT
<
* Connection #0 to host api.twitch.tv left intact

I tried another sort option, “views”, which works ok. It feels related to the specific sort option. I also found this other forum post with my exact problem from December: [Helix] Get Videos, Sort by Trending Returns 503 - Service Unavailable .

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.