Skip to content

DotNetOpenAuth.Messaging.ProtocolException #454

@Cunlai

Description

@Cunlai

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions