Anonymous
9 years agoNot applicable
Status:
Needs Info
Data Refresh API error in PowerShell
Hello, I'm getting the following error when using the sample code in GitHub. Invoke-RestMethod : The remote server returned an error: (415) Unsupported Media Type. At C:\Users\user\Documents...
Corinna
8 years agoFrequent Visitor
Same issue here too.
Invoke-RestMethod : The remote server returned an error: (404) Not Found.
At line:81 char:1
+ Invoke-RestMethod -Uri $uri –Headers $authHeader –Method POST –Verbos ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand