|
Bug: Java gdata API 1.0.3 isn't handling redirects: msg#00217org.google.api.calendar
Hello, When I insert an entry sometimes I get a RedirectRequiredException. I couldn't find any documentation on how to handle this. The message is, "Moved Temporarily". So, shouldn't the Java API simply try again at the new URL? Or, is it my responsibility to wrap all of the CalendarService.[insert,...] methods in a try/catch to do this myself like this: try { newEventEntry = calendarService.insert(feedUrl, eventEntry); } catch(RedirectRequiredException ex) { // How do I handle this? newEventEntry = calendarService.insert( new URL(ex.getRedirectLocation()), eventEntry); } Thanks. Mon 2006/Sep/25 10:15:31.866 AM|***|http-8080-Processor5|GoogleCalendarSync|com.google.gdata.util.RedirectRequiredException: Moved Temporarily com.google.gdata.util.RedirectRequiredException: Moved Temporarily at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(Unknown Source) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(Unknown Source) at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown Source) at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown Source) at com.google.gdata.client.Service.insert(Unknown Source) at com.google.gdata.client.GoogleService.insert(Unknown Source) -- Free replacement for Exchange and Outlook (Contacts and Calendar) http://www.ScheduleWorld.com/tg/ WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: How to Perform a Search Within Events?: 00217, Frank Mantek |
|---|---|
| Next by Date: | Re: Deleting events .NET: 00217, Dexterr |
| Previous by Thread: | How to Perform a Search Within Events?i: 00217, gregpinero@xxxxxxxxx |
| Next by Thread: | Bug: Zero Duation Events and <category> elements.: 00217, Philipp Kewisch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |