0

Invoke-WebRequest 返回无效操作错误

>powershell Invoke-WebRequest -Uri https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Method POST -InFile HappyMeal

上面的命令返回下面的错误

Invoke-WebRequest : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ Invoke-WebRequest -Uri https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

我该如何解决?

4

0 回答 0