-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi, I am working on some legacy code about google oauth. I always have a problem on production server. There is no any error in dev or staging. Any idea? Thanks!
Here is the error msg:
Exception Type: DotNetOpenAuth.Messaging.ProtocolException
Exception Message: Error occurred while sending a direct message or getting the response.
Trace:
at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest request, DirectWebRequestOptions options)
at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest request)
at DotNetOpenAuth.Messaging.Channel.GetDirectResponse(HttpWebRequest webRequest)
at DotNetOpenAuth.Messaging.Channel.RequestCore(IDirectedProtocolMessage request)
at DotNetOpenAuth.Messaging.Channel.Request(IDirectedProtocolMessage requestMessage)
at DotNetOpenAuth.OAuth2.ClientBase.UpdateAuthorizationWithResponse(IAuthorizationState authorizationState, EndUserAuthorizationSuccessAuthCodeResponse authorizationSuccess)
at DotNetOpenAuth.OAuth2.WebServerClient.ProcessUserAuthorization(HttpRequestInfo request)
at OAuth2GAWeb.v3.OAuth2GAWeb.getAuthorization(WebServerClient _client) in C:\Dev\git\ISolution\Legacy\CodeFiles\OAuth2GAWeb_v3.vb:line 275
at Google.Apis.Authentication.OAuth2.OAuth2Authenticator`1.LoadAccessToken()
at OAuth2GAWeb.v3.OAuth2GAWeb.authenticateOAuth2_userConsent() in C:\Dev\git\ISolution\Legacy\CodeFiles\OAuth2GAWeb_v3.vb:line 120
Inner Exception Type: System.Net.WebException
Inner Exception Message: The remote server returned an error: (400) Bad Request.
Inner Trace:
at System.Net.HttpWebRequest.GetResponse()
at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetResponse(HttpWebRequest request, DirectWebRequestOptions options)