Auth for Rest API issues

Highlighted
New Contributor

Auth for Rest API issues

Hello,

 

I have recently started to recieve the error "The underlying connection was closed: An unexpected error occurred on a send." when trying to authenticate with the REST Api. This code worked fine last week and now it's failing. I am using RestSharp/C#, can anyone see what my issue is? I don't believe that I have changed anything....

 

 

CommunityMember123802_0-1596741448071.png

 

4 REPLIES 4
Highlighted
Master Anaplanner/Community Boss

Re: Auth for Rest API issues

Hi,

Are you using 2.0 API or 1.3?

Regards,
Anirudh
New Contributor

Re: Auth for Rest API issues

I am using 2.0. Here are is the base url and the auth url that i am using. 

 

https://auth.anaplan.com/token/authenticate

https://api.anaplan.com/2/0/

Highlighted
Frequent Contributor

Re: Auth for Rest API issues

Hi,

 

did you try to login directly in the Anaplan home page with that user/pass?, maybe it expire 

 

Regards

Highlighted
New Contributor

Re: Auth for Rest API issues

Sadly, the account is fine. And yes, I did check. That is why this is so frustrating.