-
Notifications
You must be signed in to change notification settings - Fork 26
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
Snapshot Rollbacks & Deletion Not Working #13
Comments
Hi, what version do you use? Then you have to change something: |
Hey, this isn't related to this issue, but it seems kind of redundant/verbose to add It might be better to just do |
Hey @ericwang401 , thanks a lot for your feedback. I will consider/integrate this in the next update, for single functions such as post. |
We just updated the API to the newest version and now trying to do something like: I was able to make it fetch the status though, with this: Here's our full project (Stratum-Next branch): Start function is in the By the way, great job on the API so far! |
Thanks for report. I have fixed the issue. The problem was i have sent a Content-Type in Header and no content was sent, and this wasn't accepted proxmox in api. When you want debug, the error you can add behind the authType, true and then you get debug report.
The last true activate the debug mode. Thank you for your praise Thank you for helping me to improve this library and find errors that I can't always find right away. |
The new version is 4.0 |
Hey, when I turn on debug mode I get this issue: |
Hi, the error seems to be caused by the library Guzzehttp. I suspect the Guzzlehttp debug / or that CURL can not debug this, so the type "STDIO FILE". This is what I get from the error message. Otherwise write a thread at https://github.com/guzzle/guzzle they might be able to help you there. |
According to the issue 13 specifically on the most recent comment MrKampf#13 (comment) This seems to solve the issue ''cannot represent a stream of type Output as a STDIO FILE*'' and as well fixing the CSRF token occuring ''must be of type string, null given''. When testing I stumbled upon an issue according how the params are sent, it was already patched in the delete function I added these as well to post and put. About the debug setting, guzzle/guzzle#1413
Describe the bug
Trying to use the snapname class does not work (which results in rollback + deletion not working).
To Reproduce
Desktop (please complete the following information):
Additional context
Here's what we've tried:
$this->proxmox($server, $cluster)->qemu()->vmid($server->vmid)->snapshot()->snapname($snapname)->postRollback();
This appears to not work, as we get
Class \"proxmox\\Api\\nodes\\qemu\\snapshot\\snapname\" not found
.When moving the
postRollback
function to the snapshot class itself (snapshot.php) and adding parameters for the name, it appears to work fine.$this->proxmox($server, $cluster)->qemu()->vmid($server->vmid)->snapshot()->postRollback($snapname);
We added this function to snapshot.php:
Here's the full code to the project that we're working on:
https://github.com/StratumPanel/Stratum-Panel
Code is in
app/Services/Servers/SnapshotService.php
The text was updated successfully, but these errors were encountered: