We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The remote server returned an error: (400) Bad Request.
Invoke-RestMethod : The remote server returned an error: (400) Bad Request. At Install-Remotely.ps1:184 char:3
To Reproduce Run Install-Remotely.ps1 on a machine with Remotley already installed
Remotely Version Server (can be found on about page):2024.08.07.0819 Agent (can be found in device card):
Expected Behavior Not error and start service
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional Context
Option could be a try catch around the Invoke-RestMethod
try { Invoke-RestMethod -Method Post -ContentType "application/json" -Uri "$HostName/api/devices" -Body $Body } catch { if($.ErrorDetails.Message) { Write-Log $.ErrorDetails.Message } else { Write-Log $_ } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The remote server returned an error: (400) Bad Request.
Invoke-RestMethod : The remote server returned an error: (400) Bad Request.
At Install-Remotely.ps1:184 char:3
eption
To Reproduce
Run Install-Remotely.ps1 on a machine with Remotley already installed
Remotely Version
Server (can be found on about page):2024.08.07.0819
Agent (can be found in device card):
Expected Behavior
Not error and start service
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional Context
Option could be a try catch around the Invoke-RestMethod
try {
Invoke-RestMethod -Method Post -ContentType "application/json" -Uri "$HostName/api/devices" -Body $Body
} catch {
if($.ErrorDetails.Message) {
Write-Log $.ErrorDetails.Message
} else {
Write-Log $_
}
}
The text was updated successfully, but these errors were encountered: