Invoke-WebRequest error
Hazado opened this issue · comments
Hazado commented
I run this script from Sonarr, and it runs as the System profile.
Because ive never run internet explorer before as the system profile, I get the below error.
Looks like adding -UseBasicParsing will fix this error.
17-4-12 12:27:05.4|Error|powershell.exe|Invoke-WebRequest : The response content cannot be parsed because the Internet
17-4-12 12:27:05.4|Error|powershell.exe|Explorer engine is not available, or Internet Explorer's first-launch
17-4-12 12:27:05.4|Error|powershell.exe|configuration is not complete. Specify the UseBasicParsing parameter and try
17-4-12 12:27:05.4|Error|powershell.exe|again.
17-4-12 12:27:05.4|Error|powershell.exe|At E:\HandbrakeCLI\convertRadarr.ps1:627 char:5
17-4-12 12:27:05.4|Error|powershell.exe|+ Invoke-WebRequest $plexURL
17-4-12 12:27:05.4|Error|powershell.exe|+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
17-4-12 12:27:05.4|Error|powershell.exe| + CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupp
17-4-12 12:27:05.4|Error|powershell.exe| ortedException
17-4-12 12:27:05.4|Error|powershell.exe| + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.Po
17-4-12 12:27:05.4|Error|powershell.exe| werShell.Commands.InvokeWebRequestCommand
Brian commented
Fixed. Thanks for bringing this to my attention!