thanhtin61294 / google-gdata

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

Execution of authentication request returned unexpected result: 407 #551

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
used code like
 string userName = this.Username.Text;
            string passWord = this.Password.Text;

            AccountQuery query = new AccountQuery();
            AnalyticsService service = new AnalyticsService("AnalyticsSampleApp");
            if (!string.IsNullOrEmpty(userName))
            {
                service.setUserCredentials(userName, passWord);
            }

            AccountFeed accountFeed = service.Query(query);
            foreach (AccountEntry entry in accountFeed.Entries)
            {
                ListViewItem item = new ListViewItem(entry.Title.Text);
                //item.SubItems.Add(entry.Title.Text);
                item.SubItems.Add(entry.ProfileId.Value);
                this.ProfileIds.Items.Add(item);
            }

But the exception is thrown out at  service.Query(query);

Original issue reported on code.google.com by randox.l...@googlemail.com on 26 Oct 2011 at 9:13

GoogleCodeExporter commented 9 years ago
Are you using a proxy?

Error code 407 means "Proxy Authentication Required" and indicates that you 
must first authenticate with the proxy. This error is not due to the client 
library or the API, but instead with your local environment.

Original comment by ccherub...@google.com on 26 Oct 2011 at 8:32