ProxmoxCLI icon indicating copy to clipboard operation
ProxmoxCLI copied to clipboard

Connect-PveServer RestMethod failed

Open erathia65 opened this issue 4 years ago • 1 comments

Building from git worked, had to import the psm1, worked too, but when trying to connect to pve everything broke.

here's the log: `PS C:\Users\STAG\Desktop\ProxmoxCLI-master> Connect-PveServer -Server "10.114.133.85" -BypassSSLCheck Invoke-RestMethod : {"data":null} Au caractère C:\Users\STAG\Desktop\ProxmoxCLI-master\output\ProxmoxCLI\ProxmoxCLI.psm1:937 : 21

  • ... $response = Invoke-RestMethod -Method Post -Uri $Url -Body $Body
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebEx ception
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand AVERTISSEMENT : Not able to connect to server: 10.114.133.85\n Response: `

erathia65 avatar Dec 16 '20 08:12 erathia65

The response is empty leading me to think that this is a credential problem.

What format of username are you using(username, username@pam, or username@pve)?

Other issues could be that if the port was changed away from 8006 then this script won't work.

quonic avatar Dec 16 '20 18:12 quonic