Skip to main content
Question

Oauth/token server 400 error

  • November 28, 2018
  • 4 replies
  • 3562 views

Hi,


I have to many errors when I look at analytics tab - endpoints. Most of them are oauth/token post,


Application type is Server-Only.

I am using c# client and code is below.


rc = new RestClient(AppKey, AppSecretKey, Server);

await rc.Authorize(Username, Extension, Password);

var account = rc.Restapi().Account();

var extension = account.Extension();

var response = await extension.MessageStore().List();


The error I've got is:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.209.29.78:443



Flurl.Http.FlurlHttpException: Call failed. An error occurred while sending the request. GET https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.209.29.78:443

4 replies

  • Author
  • Participating Frequently
  • November 28, 2018
Anyone?

The error is just network connection error.  Could you please please try from a different network?

And can you open this page in browser? https://platform.devtest.ringcentral.com/restapi/v1.0

  • Author
  • Participating Frequently
  • November 29, 2018
Yes, I can open that page. Button Apply for Production is disabled and we cannot promote our application to production. The reason is that we have >5% 4xx errors. As you can see from screenshot below  the only error is related with oauth/token.





System.Net.Sockets.SocketException: is a connection issue which occurs if the server is unreachable or there is a network issue between client app and the server.

4xx error you are getting may be your code issue with oauth refresh which is done by auto refresh in the code.