Sonarr version (exact version) : 3.0.3.698
Mono version (if Sonarr is not running on Windows) :
OS : server 2019
Debug logs : can provide if needed
Description of issue : Having issues with downloadedepisodesscan and getting errors with PowerShell, just wondering what im doing wrong as I followed the wiki or am I blind and missed something?
Script:
$url = "http://localhost:8989/api/command"
$json = '{"name": "downloadedepisodesscan","path": "C:\Users\Administrator\Downloads\incoming" , "importMode":"Move"}'
Write-Host "Publishing update $version ($branch) to: $url"
Invoke-RestMethod -Uri $url -Method Post -Body $json -Headers @{"X-Api-Key"="15abbfb5590643adb4ffcf9ae5dd44"}
Output:
PS C:\Users\Administrator> C:\Users\Administrator\Documents\Sonarr_Quick_Import.ps1
Publishing update () to: http://localhost:8989/api/command
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At C:\Users\Administrator\Documents\Sonarr_Quick_Import.ps1:5 char:1
+ Invoke-RestMethod -Uri $url -Method Post -Body $json -Headers @{"X-Ap ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Logs:
API Error: BadRequest: Invalid request body. Bad JSON escape sequence: \U. Path 'path', line 1, position 47. (Json snippet 'sscan","path": "C:\U<--error-->sers\Administrator\D')