Forum Discussion
EricShahi
3 years agoHelper IV
Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a receive
Hi everyone, To Introduce myself : Working as a Power BI Developer with PBI Admin access. My Powershell script stoped working suddenly and prompting me an error saying the underlying connect...
- 3 years ago
Hi,
This could be as I am using a proxy server / connected to the client network using VPN.
TBH, the only way to find out is to go to office and try to execute this API and see it works.I will keep an update on this.
Thanks.
EricShahi
3 years agoHelper IV
nitishsh91
Thanks for your reply , I added that TLS line on the top of the code and ran with same error.
You mentioned the issue might be with TLS in my firewall which is not allowing the connection ? Do you know how we could confirm/check on this?
I hope we can get bottom of this.
FYI - This was changed recently , could this be the reason for this issue ?
Enable TLS 1.2 support as Azure AD TLS 1.0/1.1 is deprecated - Active Directory | Microsoft Learn
Regards,
Eric