Any luck ?

----- Original Message ----
From: Kulvinder Singh <[EMAIL PROTECTED]>
To: Google API <[email protected]>
Sent: Monday, September 3, 2007 9:53:47 AM
Subject: Error authenticating (check service name)


Hi,
 
I have several test accounts for Google API Testing and one of them is giving 
the following error when i am trying to fetch an autheticated feed :
 
Error authenticating (check service name)
 
This account was working fine earlier. I am using .NET Calendar API 1.0.9.9. I 
checked the code and the following method is originating this error :
 
private AuthenticationException getAuthException(TokenCollection tokens) 
{
String errorName = Utilities.FindToken(tokens, "Error");
if ("BadAuthentication".Equals(errorName))
{
return new InvalidCredentialsException("Invalid credentials");
}
else if ("AccountDeleted".Equals(errorName))
{
return new AccountDeletedException("Account deleted");
}
else if ("AccountDisabled".Equals(errorName))
{
return new AccountDisabledException("Account disabled");
}
else if ("NotVerified".Equals(errorName))
{
return new NotVerifiedException("Not verified");
}
else if ("TermsNotAgreed".Equals(errorName))
{
return new TermsNotAgreedException("Terms not agreed");
}
else if ("ServiceUnavailable".Equals(errorName))
{
return new ServiceUnavailableException("Service unavailable");
}
else if ("CaptchaRequired".Equals(errorName))
{
String captchaPath = Utilities.FindToken(tokens, "CaptchaUrl");
String captchaToken = Utilities.FindToken(tokens, "CaptchaToken");
StringBuilder captchaUrl = new StringBuilder();
captchaUrl.Append(GoogleAuthentication.DefaultProtocol).Append("://");
captchaUrl.Append(GoogleAuthentication.DefaultDomain);
captchaUrl.Append(GoogleAuthentication.AccountPrefix);
captchaUrl.Append('/').Append(captchaPath);
return new CaptchaRequiredException("Captcha required",
captchaUrl.ToString(),
captchaToken);
}
else
{
return new AuthenticationException("Error authenticating (check service name)");
}
}
 
which means that the Error is not out of the listed ones. The same code is 
working fine for other accounts.
 
Can anybody help ?
 
Thanks
Kulvinder Singh



Shape Yahoo! in your own image. Join our Network Research Panel today! 


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to