View Full Version : Enumerating images in a large album
talapus
Dec-03-2007, 09:13 PM
Hi all!
I am running into either a bug or my own stupidity. I created an album that is larger than what I have worked with in the past (~400 pictures), and I am having trouble enumerating it through the API. Heavy=0 works fine, but Heavy=1 fails with “server closed connection”.
For instance:
http://api.smugmug.com/hack/rest/1.2.0/?APIKey=JN5iVug82CBlEZjenjIKGKHHWUN0P1uS&method=smugmug.images.get&SessionID=f2a034255b64e7dd0614a4e50f5a9ac9&AlbumID=3917193&Heavy=0
works, but
http://api.smugmug.com/hack/rest/1.2.0/?APIKey=JN5iVug82CBlEZjenjIKGKHHWUN0P1uS&method=smugmug.images.get&SessionID=f2a034255b64e7dd0614a4e50f5a9ac9&AlbumID=3917193&Heavy=1
doesn’t.
Other (smaller) albums work fine.
Is it something with the server not allowing large requests, or with the way I am issuing them?
Thanks for your help!
--lev
rkalla
Dec-04-2007, 04:29 AM
Lev, does the request die immediately, or does it take a while then die?
I've had plenty of *large* requests (transfer stats, heavy requests, etc) simple time out on me and die. Sometimes retrying them over and over doesn't work, and other times it will eventually work.
talapus
Dec-04-2007, 09:06 PM
Takes a little while typically, yes. But this is a consistent problem --- the request never works, no matter how many times I retry... Would be really nice to find a workaround...
Thanks,
--Lev
devbobo
Dec-04-2007, 10:07 PM
Takes a little while typically, yes. But this is a consistent problem --- the request never works, no matter how many times I retry... Would be really nice to find a workaround...
Thanks,
--Lev
Lev,
I have been looking into the issue today, works fine if there is no password on that gallery. But I am having a hard time reproducing it on our internal servers so that I can debug it properly.
Will keep looking tomorrow.
Cheers,
David
rkalla
Dec-05-2007, 07:40 AM
Lev,
I have been looking into the issue today, works fine if there is no password on that gallery. But I am having a hard time reproducing it on our internal servers so that I can debug it properly.
Will keep looking tomorrow.
Cheers,
David
David,
Maybe considering a modification of large requests for 1.2.1 that return say 100, 500 or 1000 results (whatever unit is easiest to return in 3-5 secs) and then a marker, so you can request more results, from that marker forward?
Flickr handles this by having page_size and page parameters. Set the defaults at say 500 and 1. And allow the client to drive it.
This works nicely when you displaying in a paged environment (it is difficult to view 500 photos at once).
pth
talapus
Dec-05-2007, 07:58 PM
Lev,
I have been looking into the issue today, works fine if there is no password on that gallery. But I am having a hard time reproducing it on our internal servers so that I can debug it properly.
Will keep looking tomorrow.
Cheers,
David
Indeed --- removing the passwords solves the problem... Weird, seeing as how I am signed in and so should not be hobbled by my own password...
Thanks for looking into it --- would be great to have a solution.
--Lev
talapus
Dec-07-2007, 09:03 PM
Bump: any news?
Thanks,
--Lev
devbobo
Dec-09-2007, 08:12 PM
Bump: any news?
Thanks,
--Lev
Hey Lev,
Sorry this week has been pretty crazy with the SmugMug party, I just got back to Australia today. I will look into it again tomorrow.
Cheers,
David
devbobo
Dec-12-2007, 04:47 PM
This issue is fixed and live.
Can you please confirm.
Thanks,
David
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.