Hi
We have an issue with trying to retrieve some data using Invoke-RestMethod, the exact same PowerShell code from PowerShell ISE on the same server retrieves the data without any issues. If the code is ran from within PowerShell Studio I get a timeout "The requested URL could not be retrieved" - could PowerShhell Studio be behaving differently that would cause this?
Thanks
Invoke-RestMethod timeout issue but only in PowerShell Studio
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Invoke-RestMethod timeout issue but only in PowerShell Studio
It requires online access. Do you have firewall exceptions for the ISE? Is the ISE running as admin?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.