Hi Tim, On Mon, Nov 9, 2009 at 11:00 PM, Tim Hoffman <[email protected]> wrote:
> > HI Nick > > No not yet, that will definately be the next step. (I had to > concentrate on getting the data in first ;-) (Deadlines looming and > bulk loads from Plone won't happen very much) > What I did find, was after I get a 302 I couldn't successfully perform > another remote_api call on the connection for about 10minutes. Then > everything was fine again. > > Will the URL be stuffed into the exception some where or do I have to > try and trap it in remote_api code somewhere? > If you can get the exception returned by urllib, it's there - otherwise, you'll need to add some logging to remote_api, or use something such as ethercap to monitor the HTTP requests manually. -Nick > > Thanks > > Tim > > On Nov 9, 7:17 pm, "Nick Johnson (Google)" <[email protected]> > wrote: > > Hi Tim, > > > > How have you determined that it's returning a 302? What URL is the 302 > > redirect to? > > > > -Nick Johnson > > > > > > > > On Sun, Nov 8, 2009 at 8:06 AM, Tim Hoffman <[email protected]> wrote: > > > > > Further investigation shows that it is fact failing on 201st > > > transaction. (some times a lot less, but I can't get past 200 > > > transactions). > > > Then if I wait for approximately 2 minutes I can continue. > > > > > I am using the remote api in a single threaded fashion. This problem > > > does not exhibit itself on the SDK. > > > > > Will keep plugging away. > > > > > T > > > > > On Nov 8, 9:55 am, Tim Hoffman <[email protected]> wrote: > > > > On further investigation I am finding the the remote_api always gets > a > > > > HTTPError 302 after a number of transactions. > > > > The exact number varies. Anywhere from 10's to a few hundred. > > > > > > I wait for around 2min, and then resubmit it works find again. > > > > > > I don't believe this is a time based problem, as I often have a > > > > console with an authenticated remote_api session open for hours (if > > > > not days) > > > > and never fails then next time a perform a fetch/get etc... > > > > > > I wonder if some sort of token from the authentication of the > > > > remote_api connection is only valid for a varying number of > > > > transactions ? > > > > > > T > > > > -- > > Nick Johnson, Developer Programs Engineer, App Engine > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration > Number: > > 368047 > > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
