6 messages in com.googlegroups.google-calendar-help-dataapiRe: Code 400, entry still added
FromSent OnAttachments
ali...@gmail.com22 Nov 2006 08:09 
Ryan Boyd (Google)22 Nov 2006 12:28 
ali...@gmail.com27 Nov 2006 09:35 
Charlie Wood27 Nov 2006 12:23 
Ryan Boyd (Google)27 Nov 2006 13:01 
ali...@gmail.com28 Nov 2006 04:45 
Subject:Re: Code 400, entry still added
From:ali...@gmail.com (ali@gmail.com)
Date:11/27/2006 09:35:15 AM
List:com.googlegroups.google-calendar-help-dataapi

Thanks, turns out I was misinterpreting my responses. I was assuming that a location header was a 302 (I know, I know, but I was using someone elses code on another project to get me started). Anyways, I re-factored it and I realized that my first two redirects were actually a 302, followed by a 201, followed by the 400, which makes perfect sense.

Thanks.

On Nov 22, 3:28 pm, "Ryan Boyd (Google)" <api.@google.com> wrote:

Hi,

When an event is added, you should get a 201 response returned. An event should not be added if you receive a 302 redirect and likely not added as a result of a 400 response. In general, you should only see one redirect per request. As long as you store the cookie returned from the redirect and use that with your future requests, additional redirects are currently rare.

Are you using a client library for posting to your calendar, or are you crafting the HTTP requests yourself? Do you know what the body of the 400 response was (that should give an indication as to the error)?

Happy coding,