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
$post and $put request send data as querystrings #10
Comments
add a did it work with the previous version? |
Just downgraded again and it's broke in 0.2.0 as well 😭 |
in one of my scripts I use this code: console.log(`Using template ${template.vmid} (${template.name})`);
console.log(`build VM: ${id} on ${server.hostname}`);
const newid = 1000 + id;
await server.destroyVM(newid)
// const newid = 1000 + id;
console.log(`creating VM: ${newid}`);
await api.nodes
.$(server.node)
.qemu.$(template.vmid)
.clone.$post({ newid, name: `vm-${serverName}-${id}` }); and it used to work. It may work only with Proxmox 6, Can not with Proxmox 7. |
Maybe Proxmox 6 supported sending query params? We are using Proxmox 7 so can't check but I think that's likely. Can't test the new update in our same codebase because we swapped out for an own in-house solution yesterday (too many bugs and licensing issues for our liking with this lib) but created a sample script just to test the update for you and seems to be fixed now. Thanks for the resolution and best of luck on the project! |
Mutation requests $post, $put send query strings for data instead of using the body.
The text was updated successfully, but these errors were encountered: