It seems to be a recent occurrence where the full thumbnail url will fail to work until the newly uploaded thumbnail has finished processing/transcoding. This wasn’t an issue until now. Usually I could access the full image immediately after uploading. Now it takes like 30 seconds to a minute after the upload for the full image url to work.
(I obscured the url in the traceback a bit. I can confirm the issue is not due to incorrect url)
sg.download_attachment({"url": "https://<companyname>.shotgunstudio.com/thumbnail/full/PublishedFile/254342"}, image_path)
2024-12-02 14:29:36,745 [ ERROR] [PROXY] File ".../shotgun_api3/shotgun.py", line 2752, in download_attachment
2024-12-02 14:29:36,746 [ ERROR] [PROXY] raise ShotgunFileDownloadError(err)
2024-12-02 14:29:36,746 [ ERROR] [PROXY] shotgun_api3.shotgun.ShotgunFileDownloadError: Failed to open https://<companyname>.shotgunstudio.com/thumbnail/full/PublishedFile/254342
2024-12-02 14:29:36,747 [ ERROR] [PROXY] HTTP Error 404: Not Found
Not sure about your description of the problem. Of course the image will not be accessible until transcoding is done. But you mean that transcoding has started taking much longer? Or something else?
I’m sure the ShotGrid team is keeping metrics on the transcoding duration.
We used to be able to access the full non-transcoded thumbnail pretty much immediately after the upload using the thumbnail/full/Entity/id url. I’m assuming the new 404 error could be related to this change. I guess the only option is to keep trying the url until it doesn’t return a 404?
Sounds like it could be related.
Yeah I’d prefer to have some link to the thumbnail immediately, but this is probably some optimization on SG’s side. Would be interested to hear the story behind it.
If you are not using media isolation then I doubt that those changes would affect that.
Might be worth opening a ticket, maybe something has changed in the backend or a bug.
Hello, @brett.lambright. We identified this issue internally a few days ago. You are correct when you say you do not need the transcoding to be complete to access the full-sized thumbnail. We have a fix that will be rolled out to production very shortly. The issue was not related to the recent changes we asked media isolation customers to perform. Sorry for the inconvenience.