You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m building a web interface to manage my LXD containers. I use the lxd-node library to make my requests.
I can get my hosts and containers, stop, start or restart them but when it comes to sending commands, it doesn’t work.
I know that the node-lxd project is no longer maintained and I hesitate to create my requests directly by querying the LXD API but I would still like your feedback :
This is my function to send a command, I took the same example as in the official documentation, I just retrieve my container with an external function (which is working) :
Error: unexpected server response (400)
at ClientRequest.response (D:\Programation\Nasticot\NAS-SERVER\project\node_modules\ws-unix\lib\WebSocket.js:704:15)
And this part of the Websocket library is the following :
if (!self.emit('unexpected-response', req, res)) {
error = new Error('unexpected server response (' + res.statusCode + ')');
req.abort();
self.emit('error', error);
}
I probably miss something … If anyone has an idea, it would be very appreciated !
Thank you
The text was updated successfully, but these errors were encountered:
Hey guys !
I’m building a web interface to manage my LXD containers. I use the lxd-node library to make my requests.
I can get my hosts and containers, stop, start or restart them but when it comes to sending commands, it doesn’t work.
I know that the node-lxd project is no longer maintained and I hesitate to create my requests directly by querying the LXD API but I would still like your feedback :
This is my function to send a command, I took the same example as in the official documentation, I just retrieve my container with an external function (which is working) :
Unfortunately, my server is saying :
I probably miss something … If anyone has an idea, it would be very appreciated !
Thank you
The text was updated successfully, but these errors were encountered: