Even adding a new contact and updating it again is throwing this error. Please 
see the XML feed below.




________________________________
From: Kulvinder Singh <[email protected]>
To: [email protected]
Sent: Tue, October 20, 2009 1:27:39 PM
Subject: [Contacts API] Re: Invalid Request URI


I have debugged the issue. Actually, there is a contact in my account which i 
have deleted but still i am getting it in the feed and my program is trying to 
delete that contact since it is available and i am getting this error. Please 
tell me how to overcome this.




________________________________
From: Kulvinder Singh <[email protected]>
To: [email protected]
Sent: Tue, October 6, 2009 2:34:03 PM
Subject: [Contacts API] Re: Invalid Request URI


Also, the same code was working fine before i was using COntacts API 1.0




________________________________
From: Kulvinder Singh <[email protected]>
To: [email protected]
Sent: Tuesday, October 6, 2009 2:14:44 PM
Subject: [Contacts API] Re: Invalid Request URI


I simply downloaded the contact, made some modifications in its data and used :

contactService.Update(gContactEvent);

which threw the error. For your reference, i am also writing here the XML feed 
which i got when i downloaded the contact, feed which i posted for editing and 
feed which i got back :

1. When contacts retreived :

Request :

GET /m8/feeds/contacts/testuser%40a.com/full?max-results=20000 HTTP/1.1
Content-Type: application/atom+xml; charset=UTF-8
User-Agent: G-Technologies Inc./GDataGAuthRequestFactory-CS-Version=1.5.0.0
Authorization: GoogleLogin 
auth=DQAAAJoAAABGaRrbsqiOMPeEv99CwMb1boWMQnsRRx5XAftSlr2SN9fBRoymsC3OzXOAwYXfHd_AqV37Zd8TH3031cnNnu1k
GData-Version: 3.0
Host: www.google.com

Response :

HTTP/1.0 200 OK
Content-Type: application/atom+xml; charset=UTF-8; type=feed
Expires: Tue, 06 Oct 2009 07:43:45 GMT
Date: Tue, 06 Oct 2009 07:43:45 GMT
Cache-Control: private, max-age=0, must-revalidate, no-transform
Vary: Accept, X-GData-Authorization, GData-Version
GData-Version: 3.0
ETag: W/"D0cGRHs8fSt7I."
Last-Modified: Tue, 06 Oct 2009 07:43:45 GMT
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Server: GFE/2.0

http://www.w3.org/2005/Atom' 
xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' 
xmlns:gContact='http://schemas.google.com/contact/2008' 
xmlns:batch='http://schemas.google.com/gdata/batch' 
xmlns:gd='http://schemas.google.com/g/2005' 
gd:etag='W/"D0cGRHs8fSt7ImA9WxNXGEw."'> [email protected] 2009-10-06T07:43:45.575Z 
http://schemas.google.com/g/2005#kind' 
term='http://schemas.google.com/contact/2008#contact>TestUser's 
Contactshttp://www.google.com/> http://schemas.google.com/g/2005#feed' 
type='application/atom+xml' 
href='http://www.google.com/m8/feeds/contacts/testuser%40a.com/full> 
http://schemas.google.com/g/2005#post' type='application/atom+xml' 
href='http://www.google.com/m8/feeds/contacts/testuser%40a.com/full> 
http://schemas.google.com/g/2005#batch' type='application/atom+xml' 
href='http://www.google.com/m8/feeds/contacts/testuser%40a.com/full/batch> 
http://www.google.com/m8/feeds/contacts/testuser%40a.com/full?max-results=20000>
 TestUser
 [email protected] 
Contacts'>Contacts'>http://www.google.com/m8/feeds'>Contacts1 1 
20000http://www.google.com/m8/feeds/contacts/testuser%40a.com/base/74ea98f00c03aa3e
 2009-10-06T05:04:01.068Z 
2009-10-06T05:04:01.068Z'>2009-10-06T05:04:01.068Z'>http://www.w3.org/2007/app'>2009-10-06T05:04:01.068Z
 http://schemas.google.com/g/2005#kind' 
term='http://schemas.google.com/contact/2008#contact>Thttp://schemas.google.com/contacts/2008/rel#photo'
 type='image/*' 
href='http://www.google.com/m8/feeds/photos/media/testuser%40a.com/74ea98f00c03aa3e>
 
http://www.google.com/m8/feeds/contacts/testuser%40a.com/full/74ea98f00c03aa3e> 
http://www.google.com/m8/feeds/contacts/testuser%40a.com/full/74ea98f00c03aa3e> 
T http://schemas.google.com/g/2005#home' address='[email protected]' primary='true'/> 
http://www.google.com/m8/feeds/groups/testuser%40a.com/base/6>

2. When contacts updated:


Request :

POST 
/m8/feeds/contacts/syncmycaltestuser%40vidyamandir.com/full/74ea98f00c03aa3e 
HTTP/1.1
Etag: "QH49cDVSLyt7ImA9WxNXGE0PQwA."
If-Match: "QH49cDVSLyt7ImA9WxNXGE0PQwA."
Content-Type: application/atom+xml; charset=UTF-8
User-Agent: G-Technologies Inc. - 
Syncmycal/GDataGAuthRequestFactory-CS-Version=1.5.0.0
Authorization: GoogleLogin 
auth=DQAAAJkAAADTFkrcfCnDqICs4VfGoLqUIPpbv33xaMPD_vk5J7xfZ5Ttv_IEzlhx-OSh7QJHTzcq0AQW2IO5zQ3oy3T3dhJb
GData-Version: 3.0
Host: www.google.com
Content-Length: 1838
Expect: 100-continue
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?>

  
2009-10-06T05:04:01.068Z'>http://www.w3.org/2007/app%22%3E2009-10-06T05:04:01.068Z
  
  
  <gd:name>
    <gd:fullName>T</gd:fullName>
  </gd:name>
  
  
    <gd:when startTime="1899-12-30" />
  </gContact:event>
  <gd:extendedProperty name="-2139123622" 
value="000000001123BB8417D3924C89AC863AA2D15AEF44D75D00" />
  <title type="text">T</title>
  http://www.google.com/m8/feeds/contacts/testuser%40a.com/base/74ea98f00c03aa3e
  
  
  
  
  <content type="text" />
  <updated>2009-10-06T10:34:01+05:30</updated>
</entry>

Response :

HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=UTF-8
Date: Tue, 06 Oct 2009 07:43:52 GMT
Expires: Tue, 06 Oct 2009 07:43:52 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Server: GFE/2.0

Invalid request URI



I hope it will help you find the issue.



________________________________
From: Kulvinder Singh <[email protected]>
To: [email protected]
Sent: Tuesday, October 6, 2009 1:02:07 PM
Subject: [Contacts API] Re: Invalid Request URI


This is the error i am getting :

Message : Execution of request failed: 
http://www.google.com/m8/feeds/contacts/[email protected]/full/74ea98f00c03aa

Source : Google.GData.Client

InnerException : The remote server returned an error: (400) Bad Request.

Google Server Error : Invalid request URI





________________________________
From: Julian (Google) <[email protected]>
To: Google Contacts API <[email protected]>
Sent: Thursday, October 1, 2009 4:01:35 PM
Subject: [Contacts API] Re: Invalid Request URI


Hi,

What URI or code to generate the URI are you using? In .NET it is easy
to stop during runtime and get the actual URL as string.

Cheers,
Julian

On Sep 30, 6:36 am, Kulvinder Singh <[email protected]> wrote:
> Hi,
>
> I did an insert for a contact in my gmail account, downloaded all the 
> contacts i have through ContactsQuery class in .NET C# API 3.0 and i am 
> getting an error (404) Bad request saying "Invalid Request URI".
>
> Is there any reason or stuff which i can do to debug this ?
>
> Thanks
> Kulvinder Singh












      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts 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-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to