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....
Comments
-
I am using 2.0. Here are is the base url and the auth url that i am using.
0 -
Sadly, the account is fine. And yes, I did check. That is why this is so frustrating.
0 -
Did you find a solution?
I'm having a similar issue. using api 2.0
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
Script works from UI but not when called from Informatica.
Research leaning toward tls issue, no success with the suggestions around forcing tls version.
0 -
Yes, I did. Check the project that is calling the Anaplan REST api and make sure that compiling for at least .NET 4.6(?). The issue is with the TLS version, <4.6 is using the older TLS version. It's not a verbose error, and needs some digging to find the root cause.
0 -
My issue solved. I had to add -Proxy to the failing Invoke-WebRequest statement. Due to this being a service account, policy will not allow updating the IE settings directly.0
-
Try something like this at the beginning of your method:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;
This appears to be an issue with the .NET web request rather than an Anaplan thing.
0
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways