The question is: Is there a new way in calling the API so an activity can be inserted into a user's profile?
I posted a related question here about a month ago. It was working fine until early this week when it suddenly stopped working and complained about this error:
[error message]
Error occurred while sending a direct message or getting the response
[inner exception]
The remote server returned an error: (400) Bad Request.
[stack 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 GPlusWrapper.PlusWrapper.GetAuthorization(WebServerClient client) in \gplus_csharp_ssflow\PlusWrapper.cs:line 122
at Google.Apis.Authentication.OAuth2.OAuth2Authenticator`1.LoadAccessToken()
at Google.Apis.Authentication.OAuth2.OAuth2Authenticator
1.ApplyAuthenticationToRequest(HttpWebRequest request)
1 onRequestReady) at Google.Apis.Requests.Request.ExecuteRequestAsync(Action
at Google.Apis.Requests.Request.CreateWebRequest(Action1 responseHandler) at Google.Apis.Requests.ServiceRequest
1.GetAsyncResponse(Action1 responseHandler) at Google.Apis.Requests.ServiceRequest
1.GetResponse() at Google.Apis.Requests.ServiceRequest`1.Fetch()
At first glance one that is experienced in Google API and DNOA would say it's a DNOA issue. I've been searching for three days and the issues that I found having the same error message does not fit the issue - or the solution proposed does not fit the issue I have.
So the next thing to do is to upgrade, yes, it make sense as the Google team may have changed something on how the API works. So I upgraded from v1.2.4737.25316
to v1.3.0.15233
, which is the latest stable version in the repo.
To make sure that it is not my code or something in my code that causes the issue, I've revisited Gus' sample code given here. That sample code used to work in v1.2
but also stopped working in both v1.2
and v1.3
.
Now since there is a new version of the library, it only make sense to re-visit the docs and see if something changed in the configuration or how to call the API. There seems to be nothing different in the way the API should be called.
So I did what I did the last time in debugging the application. I tried both
- request_visible_actions; and
- requestvisibleactions
and I still had the access_type
parameter and nothing worked.
Again, my question is: Is there a new way in calling the API so an activity can be inserted into a user's profile?
Please take note that I am using the server-side flow