Video thumbnails stopped working a few days ago

The url for the video thumbnail returned in the video json is showing an error.

Here is the full json.

{
“result”: {
“uid”: “d30fd84d9423839c9d07204e924c1849”,
“thumbnail”: “https://videodelivery.net/d30fd84d9423839c9d07204e924c1849/thumbnails/thumbnail.jpg”,
“thumbnailTimestampPct”: 0,
“readyToStream”: true,
“status”: {
“state”: “ready”,
“pctComplete”: “100.000000”
},
“meta”: {
“downloaded-from”: “https://pyvott-staging-user-uploads-723935559010.s3-accesspoint.us-west-1.amazonaws.com/8f1a2beb8c434f1586b7536d383e8cca.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2RDPL7VRN6B7LQBC%2F20210618%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20210618T013418Z&X-Amz-Expires=1800&X-Amz-Signature=ef107f3d5a04bfef142848c234d366830218567a46ef2544fb95e34e2acebd3a&X-Amz-SignedHeaders=host
},
“created”: “2021-06-18T01:34:19.626033Z”,
“modified”: “2021-06-18T01:34:25.78626Z”,
“size”: 1338390,
“preview”: “Stream”,
“allowedOrigins”: ,
“requireSignedURLs”: false,
“uploaded”: “2021-06-18T01:34:19.626008Z”,
“uploadExpiry”: null,
“maxSizeBytes”: null,
“maxDurationSeconds”: null,
“duration”: 3.9,
“input”: {
“width”: 1080,
“height”: 606
},
“playback”: {
“hls”: “https://videodelivery.net/d30fd84d9423839c9d07204e924c1849/manifest/video.m3u8”,
“dash”: “https://videodelivery.net/d30fd84d9423839c9d07204e924c1849/manifest/video.mpd
},
“watermark”: null
},
“success”: true,
“errors”: ,
“messages”:
}

Another example:

Has anyone else seen this and is there a possible explanation on Cloudflare’s end? I noticed they had an incident with image resizing today which may be related?

Thanks,

Tiffany

Hi, this seems to be cache related. If you request the thumbnail while the video is still being encoded, it can result in the image going into blank state.

Try this to bust the cache: https://videodelivery.net/d30fd84d9423839c9d07204e924c1849/thumbnails/thumbnail.jpg?x=3

Hi, Zaid. Thanks for getting back on this. The orignal url is still cached, bummer. Always busting the cache with a url parameter probably isn’t the best long term solution since we definitely want to utilize caching on your end. Is there a safe-ish period of time to wait before requesting the thumbnail to minimize this issue?

Hey there, to answer this question:

“Is there a safe-ish period of time to wait before requesting the thumbnail to minimize this issue?”

The absolute safest way is to setup webhooks (Use webhooks · Cloudflare Stream docs) for Stream and only request the thumbnail once you receive a webhook where readyToStream value is true.

Let me know if this solves the issue for your use case.

This has been addressed. You should no longer see empty responses or 404s.