Skip to content
New issue

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

Connect-PveServer RestMethod failed #4

Open
erathia65 opened this issue Dec 16, 2020 · 1 comment
Open

Connect-PveServer RestMethod failed #4

erathia65 opened this issue Dec 16, 2020 · 1 comment

Comments

@erathia65
Copy link

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:
      `
@quonic
Copy link
Owner

quonic commented Dec 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants