[GH-ISSUE #208] Parameter verification failed with boolean parameter #114

Closed
opened 2026-02-27 15:46:30 +03:00 by kerem · 3 comments
Owner

Originally created by @RafalSkolasinski on GitHub (May 18, 2025).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/208

Hi, I am trying to clone VM using proxmoxer.

I am want to use https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/clone API which allows for full parameter (boolean).

Following code unfortunately raises exception. How can I pass bool?

proxmox.nodes(config.node).qemu(911).clone.post(
    newid=501,
    name="cloned",
    full=True,
)
Originally created by @RafalSkolasinski on GitHub (May 18, 2025). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/208 Hi, I am trying to clone VM using proxmoxer. I am want to use https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu/{vmid}/clone API which allows for `full` parameter (`boolean`). Following code unfortunately raises exception. How can I pass bool? ```python proxmox.nodes(config.node).qemu(911).clone.post( newid=501, name="cloned", full=True, ) ```
Author
Owner

@morph027 commented on GitHub (May 19, 2025):

Should be the right way to do. What's the excpetion?

<!-- gh-comment-id:2889760338 --> @morph027 commented on GitHub (May 19, 2025): Should be the right way to do. What's the excpetion?
Author
Owner

@RafalSkolasinski commented on GitHub (May 19, 2025):

Ah yes, sorry, should've included that

    145 if resp.status_code >= 400:
    146     if hasattr(resp, "reason"):
--> 147         raise ResourceException(
    148             resp.status_code,
    149             httplib.responses.get(
    150                 resp.status_code, ANYEVENT_HTTP_STATUS_CODES.get(resp.status_code)
    151             ),
    152             resp.reason,
    153             errors=(self._store["serializer"].loads_errors(resp)),
    154         )
    155     else:
    156         raise ResourceException(
    157             resp.status_code,
    158             httplib.responses.get(
   (...)    161             resp.text,
    162         )

ResourceException: 400 Bad Request: Parameter verification failed. - {'full': "type check ('boolean') failed - got 'True'"}
<!-- gh-comment-id:2890584370 --> @RafalSkolasinski commented on GitHub (May 19, 2025): Ah yes, sorry, should've included that ``` 145 if resp.status_code >= 400: 146 if hasattr(resp, "reason"): --> 147 raise ResourceException( 148 resp.status_code, 149 httplib.responses.get( 150 resp.status_code, ANYEVENT_HTTP_STATUS_CODES.get(resp.status_code) 151 ), 152 resp.reason, 153 errors=(self._store["serializer"].loads_errors(resp)), 154 ) 155 else: 156 raise ResourceException( 157 resp.status_code, 158 httplib.responses.get( (...) 161 resp.text, 162 ) ResourceException: 400 Bad Request: Parameter verification failed. - {'full': "type check ('boolean') failed - got 'True'"} ```
Author
Owner

@rubbxalc commented on GitHub (Sep 26, 2025):

You just need to pass an integer instead of a Python bool:

  • 0 → false
  • 1 → true

For example:

proxmox.nodes(config.node).qemu(911).clone.post(
    newid=501,
    name="cloned",
    full=1
)
<!-- gh-comment-id:3337171698 --> @rubbxalc commented on GitHub (Sep 26, 2025): You just need to pass an integer instead of a Python bool: - 0 → _false_ - 1 → _true_ For example: ```python proxmox.nodes(config.node).qemu(911).clone.post( newid=501, name="cloned", full=1 ) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#114
No description provided.