Hello, I have the same problem
curl -k https://163.172.87.55:8006/api2/json/nodes -H 'Authorization: PVEAPIToken=root@pam!user=key'
curl: (56) OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0
I did that because I'm trying to create VM with Ansible
ansible-playbook -i inventory/inventory.ini playbooks/create_and_setup_ssh_vm.yml --ask-vault-pass -e "next_vmid=334"
Vault password:
PLAY [Deploy Ubuntu VM from template] ****************************************************************************************************************************************************************
TASK [Clone the VM from template] ********************************************************************************************************************************************************************
[DEPRECATION WARNING]: The proxmox_default_behavior option will change its default value from "compatibility" to "no_defaults" in community.general 4.0.0. To remove this warning, please specify an
explicit value for it now. This feature will be removed from community.general in version 4.0.0. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [localhost]: FAILED! => {"changed": false, "msg": "authorization on proxmox cluster failed with exception: 401 Unauthorized: 'root@pam!********' is not a valid token ID - not able to split into user and token parts - {'errors': b''}"}
PLAY RECAP *******************************************************************************************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0