Invoke-RestMethod timeout issue but only in PowerShell Studio

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 3 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
rjowens21
Posts: 1
Last visit: Thu May 07, 2020 2:36 am

Invoke-RestMethod timeout issue but only in PowerShell Studio

Post by rjowens21 »

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
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Invoke-RestMethod timeout issue but only in PowerShell Studio

Post by Alexander Riedel »

It requires online access. Do you have firewall exceptions for the ISE? Is the ISE running as admin?
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 3 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked