ArchivedUri --> spacer.gif
pth
Registered Users Posts: 49 Big grins
So I have been working on a simple download script to make an offline copy of my photos. I thought hey use the new API and here I am :-)
My code is working for the vast majority of my photos, but for a few, when I retrieve the ArchivedUri property from an image, the link appears solid, but if I try to download it (from my code or the API browser) I get a copy of spacer.gif -- the image appears fine and if I look to the "!sizeoriginal" for the image it appears fine, but I am a bit troubled by the odd behavior.
Any ideas?
My code is working for the vast majority of my photos, but for a few, when I retrieve the ArchivedUri property from an image, the link appears solid, but if I try to download it (from my code or the API browser) I get a copy of spacer.gif -- the image appears fine and if I look to the "!sizeoriginal" for the image it appears fine, but I am a bit troubled by the odd behavior.
Any ideas?
0
Comments
SmugMug Product Manager
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
I am seeing this odd behavior, too.
I have used the API to get the OriginalURL for all 147,000 images I have in smugmug, and am using curl to download all of these for an offline copy. I did a batch of 50,000 with no issues. It finished earlier today.
Now, as I start the next batch of 50,000, I learn that I am only downloading tiny spacer.gifs when I curl the OriginalUrl. Very odd. If I enter the OriginalUrl in the browser, it pops up a download box for spacer.gif. So, I go back and try it on some of the 50,000 that succeeded this morning, and now, spacer.gif.
So, what on earth happened? Has something changed in the last few hours? Has my ip address somehow been flagged to not allow access to OriginalUrls after I did the first 50,000 of them?
Urls for other sizes work fine, it's just the OriginalUrl which has started failing. This is frustrating; I'd like to get my remaining 97,000 originals downloaded so that smugmug is not the only place in the world they exist.
SmugMug Product Manager
Ok, so all my galleries were set for X3Large to be the largest image to view, with Original disabled.
With this setting, the OriginalUrl was in a format like this:
http://tri-to-win-events.smugmug.com/Sports/2010GarrettCountyGranFondo/i-nMNkNzM/1/k6Wd%2BBVkMJS%2AeWUL3Ng8r3tVSQQ%3D-1433436401-O/4739736140_7629fd6227_o.jpg
I was able to successfully curl this url to save the image locally. Until I wasn't. Something changed and attempting to view this url or curl it, resulted in spacer.gif.
So, I changed my galleries to allow OriginalUrl as the largest image to view (a setting I do not want, but which I will persevere with while I download my backups), and the OriginalUrl changes to a format like this:
http://tri-to-win-events.smugmug.com/Sports/2010GarrettCountyGranFondo/i-nMNkNzM/1/O/4739736140_7629fd6227_o.jpg
And now I can again curl the original image.
So, something definitely changed on me. Whether smugmug was operating correctly or in error when it initially allowed me to curl the OriginalUrl from a gallery that prohibits viewing of Original size, I do not know. But, a change happened between my first batch of 50,000 and my second batch (a matter of hours) that started redirecting those OriginalUrls for galleries that do not permit Originals to be viewed to spacer.gif.
ps - Galleries must also have HideOwner set to false or the Urls are smugmug.com/.... and these also cannot be curled (but can be opened in the browser).
SmugMug Product Manager
Yes, sounds like it.
I generated the OriginalUrls for all 147K images via the API. I then started downloading a batch of 50K, which was successful and took overnight and then some. The next evening I attempted the next batch of 50K, but downloads failed, presumably because the OriginalUrls had expired. And I then went back to some in the first batch of 50K and was flummoxed to see that those OriginalUrls were now failing, which, of course, is because the Url had expired.
So, I guess that explains it. Thanks.
Hello, I just wanted to add that three separate people have contacted me about this same error when they try to download images from Password Protected galleries today and yesterday. All of the galleries are different... I am trying to help clients through the muddle so I'll be watching here. Glad to hear I'm not the only one. I am now disabling passwords in the hope that will help.
I've had 3 of my clients, as well as myself when not logged in get this same error.
client just reported the same issue to me. she is trying to download several of her photos. some work fine and download as .jpegs and some do not, they download as spacer.gif
For those here currently getting reports from clients, are there any patterns about the particular galleries/photos that aren't downloading correctly as far as you can tell? If there are links to galleries/photos that are broken those could help us narrow down the cause of the problem. Feel free to message me directly or email our support heroes via help@smugmug.com with more details.
SmugMug Product Manager