manicoder / google-gdata

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

Google.GData.Client.GDataRequestException when querying albums list #579

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I'm using this code in order to get album list : 

                /// <summary>
        /// Gets the service.
        /// </summary>
        /// <value>
        /// The service.
        /// </value>
        private PicasaService Service {
            get {
                if (_service == null) {
                    _service = new PicasaService (_configuration.ApplicationName);
                    _service.setUserCredentials (_configuration.UserName, _configuration.Password);
                }

                return _service;
            }
        }

                /// <summary>
        /// Gets the galeries.
        /// </summary>
        /// <returns>
        /// The galeries.
        /// </returns>
        public IEnumerable<ImageGalery> GetGaleries ()
        {
            try {
                List<ImageGalery> result = new List<ImageGalery> ();

                AlbumQuery query = new AlbumQuery (PicasaQuery.CreatePicasaUri (this._configuration.DefaultUserName));
                PicasaFeed feed = this.Service.Query (query);

                foreach (PicasaEntry item in feed.Entries)
                    result.Add (new PicasaGalery (item));

                return result;
            } catch (Exception error) {
                throw error;
            }
        }
2.This code worked fine two days ago
3.Since two days I always  have this issue : 

Google.GData.Client.GDataRequestException: Execution of request failed: 
http://picasaweb.google.com/data/feed/api/user/default?kind=album ---> 
System.Net.WebException: The remote server returned an error: (403) Forbidden.
  at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x002d9] in /home/kbeaugrand/Bureau/mono-2.10.8/mcs/class/System/System.Net/HttpWebRequest.cs:1475 
  at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00141] in /home/kbeaugrand/Bureau/mono-2.10.8/mcs/class/System/System.Net/HttpWebRequest.cs:1300 
  --- End of inner exception stack trace ---
  at Google.GData.Client.GDataRequest.Execute () [0x00000] in <filename unknown>:0 
  at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter) [0x00000] in <filename unknown>:0 

What is the expected output? What do you see instead?
NO exception!

Please use labels and text to provide additional information.

You can see Gdata debug output : 

[20:14:18:9620] - set token called with: 
[20:14:18:9675] -                                                               
                                                                      --> 
Service.Query(): Enter
[20:14:18:9702] -                                                               

  --> FeedQuery.CalculateQuery(): creating target Uri
[20:14:18:9750] - Service:Query - about to query
[20:14:18:9764] -                                                               

--> Service.Query(): Enter
[20:14:18:9789] -                                                               

      --> GDataGAuthRequest.Execute(): GoogleAuth: Execution called
[20:14:19:0134] - Network credentials found
[20:14:20:1393] - QueryAuthtoken failed SendFailure Error getting response 
stream (Write: The authentication or decryption has failed.): SendFailure
did not find an auth token in QueryAuthToken
---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
did not find an auth token in QueryAuthToken
---- Assert Long Message ----

[20:14:20:1432] - set token called with: 
[20:14:20:1464] -                                                               

          --> GDataRequest.Execute(): calling the real execution over the 
webresponse
[20:14:20:2649] -                                                               

          --> GDataRequest.Execute(): GDataRequest::Execute failed: 
http://picasaweb.google.com/data/feed/api/user/default?kind=album
[20:14:20:2652] - Got no response object

Original issue reported on code.google.com by kbeaugr...@gmail.com on 3 Apr 2012 at 6:21

GoogleCodeExporter commented 9 years ago
This code works fine with my account, you get a 403 if your credentials are 
incorrect. Please double check the username and password you are using.

Original comment by ccherub...@google.com on 5 Apr 2012 at 5:57

GoogleCodeExporter commented 9 years ago
I'm sorry but I didn't mention I'm using this : 

- Mono 2.10.6-2.1.3
- gdata-sharp - 1.4.0.2-12.1.3
- OpenSuse 12.1

I didn't found any package with gdata-sharp 1.9 in order to test with this.
I tried to compile myself but I had errors : 
/usr/local/bin/gmcs: ligne2: /usr/local/bin/mono: Aucun fichier ou dossier de 
ce type

Could you hep me to make google picasa librairy working ?

P.S : all worked fine without any changes in my code or my login/password -> 
works fine on windows... 

Original comment by kbeaugr...@gmail.com on 6 Apr 2012 at 7:58

GoogleCodeExporter commented 9 years ago
Sorry, I'm not in involved the gdata-sharp project so I don't really know. 
I'd recommend asking for support in the gdata-sharp project page.

Original comment by ccherub...@google.com on 6 Apr 2012 at 8:18