Hello
I am using DNOA to authenticate users against Google. I have noticed
that I get the following exceptions logged in the log file even though
the authentication goes on to succeed. I am using version 4.0.0.12084
of DotNetOpenAuth.
I was wondering if this is expected or not?
This thread seems pretty similar to what I am seeing (i.e. it is slow,
similar errors and in the end it succeeds) but it is two years old now
so I am not sure if it still applies:
http://groups.google.com/group/dotnetopenid/browse_thread/thread/2ae86f3fb0fbd95f/b1214164ea6774a8?lnk=gst&q=bad+request+CreateRequest#b1214164ea6774a8
Any help would be appreciated! Thanks!
Cheers,
Dave
The exceptions from the logs (I can provide I full log if required):
ERROR 2012-05-02 17:00:15,674 7536ms Http -
WebException from
https://www.google.com/accounts/o8/user-xrds?uri=http:%2F%2Fsomegoogledomain.com%2F:
<!DOCTYPE html>
<html>
<head>
<title>Google Accounts</title>
<style type="text/css">
body {font-family: arial,sans-serif;}
.body {margin: 15px 15px; }
</style>
</head>
<body dir="" ><style type="text/css">
.aligns {
text-align: ;
}
.margins {
margin-: 13px;
}
.floats-normal {
float: ;
}
.floats-reverse {
float: ;
margin-top: 17px;
}
</style>
<div class="header margins" style="height: 59px; margin: 33px 15px
9px 15px;">
<img src="
https://www.google.com/intl//images/logos/
accounts_logo.gif" alt="Google Accounts" height="40px;"/>
</div>
<div style="clear:both;"></div>
<div class="body">
</div>
<div class="footer" style="color: #666; font-size: smaller; margin:
50px 15px 0 15px; text-align: center;">
©2009 Google -
<a href="
http://www.google.com">Google Home</a> -
<a href="
https://www.google.com/accounts/TOS?hl=">Terms of Service</
a> -
<a href="
http://www.google.com/intl//privacy.html">Privacy Policy</
a> -
<a href="
http://www.google.com/support/accounts?hl=">Help</a>
</div>
</body>
</html>
WARN 2012-05-02 17:00:18,456 10319ms Yadis -
HTTP GET error while retrieving described-by XRDS document
https://www.google.com/accounts/o8/user-xrds?uri=http%3A%2F%2Fsomegoogledomain.com%2F:
DotNetOpenAuth.Messaging.ProtocolException: Error occurred while
sending a direct message or getting the response. --->
System.Net.WebException: The remote server returned an error: (400)
Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at
DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest
request, DirectWebRequestOptions options) in c:\BuildAgent\work
\6fe1ab573d75f9ba\src\DotNetOpenAuth.Core\Messaging
\StandardWebRequestHandler.cs:line 127
--- End of inner exception stack trace ---
at
DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest
request, DirectWebRequestOptions options) in c:\BuildAgent\work
\6fe1ab573d75f9ba\src\DotNetOpenAuth.Core\Messaging
\StandardWebRequestHandler.cs:line 173
at
DotNetOpenAuth.Messaging.UntrustedWebRequestHandler.GetResponse(HttpWebRequest
request, DirectWebRequestOptions options) in c:\BuildAgent\work
\6fe1ab573d75f9ba\src\DotNetOpenAuth.Core\Messaging
\UntrustedWebRequestHandler.cs:line 250
at
DotNetOpenAuth.OpenId.HostMetaDiscoveryService.GetXrdsResponse(UriIdentifier
identifier, IDirectWebRequestHandler requestHandler, Uri xrdsLocation)
in c:\BuildAgent\work\6fe1ab573d75f9ba\src
\DotNetOpenAuth.OpenId.RelyingParty\OpenId
\HostMetaDiscoveryService.cs:line 311
at
DotNetOpenAuth.OpenId.HostMetaDiscoveryService.GetExternalServices(IEnumerable`1
xrds, UriIdentifier identifier, IDirectWebRequestHandler
requestHandler) in c:\BuildAgent\work\6fe1ab573d75f9ba\src
\DotNetOpenAuth.OpenId.RelyingParty\OpenId
\HostMetaDiscoveryService.cs:line 191