Helix always return 404 preview with a specif streamer

I’m using Get Streams from Helix to get the streaming preview of a streamer but it always returns https://static-cdn.jtvnw.net/ttv-static/404_preview-1920x1080.jpg, that’s not a big problem since I’ve already created a default image to post when twitch isn’t giving one. But I’m wondering why that request is working with all the other streamers I’ve tried it with but not with this specific one?

The streamer I’m talking about is Enkk.

User is not currently live and you didn’t provide a snapshot of the Get Streams output so I cannot investigate further.

I’m gonna guess you forgot to replace the {width} and {height} parameters, but that seems unlikely.

It’s also possible they are streaming at a rate/level that lets the stream work but prevents the preview rendering. But again can’t check they are not live

Right now he’s live!

Calling get streams

https://api.twitch.tv/helix/streams?user_login=enkk

Results in

{
"data": [
{
"id": "39633288172",
"user_id": "52443328",
"user_name": "Enkk",
"game_id": "509670",
"type": "live",
"title": "Impariamo a programmare con Prof Enkk (Lezione 1)",
"viewer_count": 1825,
"started_at": "2020-10-10T14:17:46Z",
"language": "it",
"thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_enkk-{width}x{height}.jpg",
"tag_ids": [
"5b9935eb-1e9a-4217-98ad-62bda5cff0d1",
"cea7bc0c-75a5-4446-8743-6db031b71550",
"c2839af5-f1d2-46c4-8edc-1d0bfbd85070"
]
}
],
"pagination": {}
}

Which parse as

https://static-cdn.jtvnw.net/previews-ttv/live_user_enkk-{width}x{height}.jpg",

to

https://static-cdn.jtvnw.net/previews-ttv/live_user_enkk-1920x1080.jpg

Which results in

Working fine for me!

1 Like