Ah, you should only call setUserCredentials once. That function makes an HTTPS request for a new token.
http://code.google.com/apis/gdata/auth.html#ClientLogin Eric On Aug 28, 6:28 pm, icebackhaz <[EMAIL PROTECTED]> wrote: > This is using the java API. I've generally been testing with pushing > 10 items in a single feed (and occasionally with >500). Also I have > no problem inside eclipse running 20 submissions each with a single > rather sparse item. But when we escalate the processing to the more > production-like multi-threaded scenario (say 5 threads), a run of 20 > of those same single-item submissions (each with a > setUserCredentials() call) generates an AuthenticationException for > some of the submissions with a message stating "Authentication > required" (The exception class is correct, my programme catchs > explicitly that, and the "Authentication required" is definitely > there, I just don't have the full message to hand.) > > So our concern is somewhat of an edge case perhaps. We don't expect > to get a lot of singleton requests in rapid fire from our (eventual) > users, but it reliably blows up in testing so we will have to guard > for it. (This may lead us away from being an aggregator as we w/could > use different credentials in reality (If for instance we suddenly got > a slough of singleton requests from a variety of our clients.) > > On Aug 28, 6:45 pm, "Eric (Google)" <[EMAIL PROTECTED]> wrote: > > > How are you doing the inserts? Are you using one of the libraries? > > > I just tried inserting 30 items in a single loop using the PHP > > library. > > Everything went as expected. > > > Also, what's the auth error? > > > Eric > > > On Aug 28, 5:08 pm, icebackhaz <[EMAIL PROTECTED]> wrote: > > > > Has anybody else seen authentication failure on rapidly fired single- > > > entry submissions? A test using 20 items sent in succession (well > > > potentially in parallel as the env is multithreaded) is generating an > > > authentication exception on some of the entries. > > > > From the FAQ: > > > "The Google Base data API supports up to approximately 5 queries per > > > second, per user." > > > > Are inserts queries? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Base Data API" 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-Base-data-API?hl=en -~----------~----~----~----~------~----~------~--~---
