lausd-teacher / gwt-gdata

Automatically exported from code.google.com/p/gwt-gdata
0 stars 0 forks source link

401 (Authorization required) HTTP Error When Retrieving Contacts #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to: 
http://gdata-javascript-client.googlecode.com/svn/trunk/samples/contacts/contact
s_picker/picker.html login and click on a contact.
2. Also having this exact same error in my own sample code, which is trying to 
retrieve contacts.
3. Tried testing it locally, also deployed my site to my domain with no luck. 
Even registered my domain, but this did not help.

What is the expected output? What do you see instead?

  You expect it to show the contact info, but instead, for me, it shows an alert window which says: Error: [object Event]. Opening up Chrome's error console, I see a 401 (Authorization required) error which is exactly what I get in my code when attempting to retrieve contacts.
  However, when I use this project's sample code, I can access my contacts fine. The difference is that when the error occurs, a GET http request is sent to google, as opposed to the sample code where it is a POST, which maybe contains the required authentication?
  I tried testing it with a calendar request, and it worked fine. I've been playing around with it for days now, trying to track down what's going on, but haven't had any luck.

What version of the product are you using? On what operating system?

  Using the latest GWT and the latest version of this project.

Please provide any additional information below.

  This project would be very useful to me if I can get it working, so I am hoping we can figure this out. Thanks!

Original issue reported on code.google.com by PFrybar...@gmail.com on 17 Apr 2011 at 1:17