Thanks again for the feedback. It will take me some time to report back with the headers, but I definitely think this is on the right trail. Again, the library in question is the 1.45.0 gdata-java- client. Here is a more complete picture:
1. The save method with the insert that is throwing this exception does not have the If-match: * header explicitly set anywhere in the method. The method itself is truly just a simple insert. 2. The gdata contactsService is a set up to be a guice-injected, 2LO authorized singleton used by many methods in our application. 3. We recently added a totally different method that performs a bulk operations with the following: contactsService.setHeader(GDataProtocol.Header.IF_MATCH, "*"); ContactFeed resultFeed = contactsService.batch(batchUrl, feed); Now, with all that being said, it was our expectation that setting that header would only exist for that single batch request and would have no effect on any other methods. However, with what you were saying, could it be the case that the service still has this header value set when it is used to insert a new contact in a totally different method? If so, how can we restrict the setting to only be set for the desired request? -Steve On May 4, 6:18 pm, Alain <[email protected]> wrote: > Hum, I tried posting the XML you just provided and it worked just fine. > As I mentioned in my previous reply, the issue might be coming from the > headers you're setting when sending the request. This error seems to be > thrown by the API if your POST request contains a header such as: > If-match: * (or a specific Etag). > If-none-match: * (or a specific Etag). > > Can you trying logging the header? Additionally, are you using a specific > client library? > > Best, > Alain -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html
