Forum Discussion
mrslyfox
8 years agoHelper II
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
Windows 2012R2 x64 PowerShell ISE Script from PBI as is: while($true){ $endpoint = "https://api.powerbi.com/beta/xxxxxxxx" $payload = @{ "Measured" =123 "DateTime" =Get-Date -Format F "Mac...
v-jiascu-msft
8 years agoMicrosoft Employee
Hi mrslyfox,
Since it works in Win 10, I would suggest:
1. Follow how-do-i-get-the-body-of-a-web-request-that-returned-400-bad-request-from-invoke to get more details of the error.
2. Check your code with the information in the Service.
3. A little possibility that caused by Firewall.
4. Upgrade the Power Shell.
Best Regards,
Dale
