Hello, Unfortunately, I am not familiar with ASP .NET. Can you catch the request payload (XML data) that is sent to the API? It will be easier for us to understand what is happening.
Additionally, 400 errors are usually accompanied by a response body with a more detailed explanation. Best, Alain On Tue, Apr 3, 2012 at 6:50 AM, Yisroel Olewski <[email protected]> wrote: > hi > im starting out with gdata .net wrapper > heres my very simple code > > Sub SyncPersons() > Dim settings = New RequestSettings(MyApp, myusername, mypass) > Dim cr = New ContactsRequest(settings) > Dim query = New ContactsQuery(ContactsQuery.CreateContactsUri("default")) > query.NumberToRetrieve = 5000 > Dim f = cr.Get(Of Contact)(query) > For Each entry In f.Entries > dim p=findgperson(entry.id) > If entry.Updated > p.LastEdit Then > p.GoogleCode = entry.Id > Else > entry.Name.FamilyName = p.Surname > cr.Update(Of Contact)(entry) 'err here > End If > Next > End Sub > > as soon as it reaches the update line, it crashes with the > GDataRequestException: The remote server returned an error: (400) Bad > Request. > > what can possibly be wrong here? > thanks > > > -- > 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 > -- Alain Vongsouvanh | Developer Programs Engineer -- 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
