Invoke-RestMethod timeout issue but only in PowerShell Studio

Ask your Windows 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.
Locked
rjowens21
Posts: 1
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Thu Mar 28, 2019 10:46 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: 7343
Joined: Tue May 29, 2007 4:43 pm

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.

Locked