Open dbussert opened 9 years ago
How much time passes before the auth token expires? It was my understanding that the auth token expiration is lengthened each time an operation happens using that token, but I could be wrong. Let me take a look...
It looks like the command you may be sending may not be providing all the arguments it needs to run properly. I don't have your code so it will be harder for me to debug, but if you could go to this line https://github.com/reedog117/node-vsphere-soap/blob/master/lib/client.js#L223 and add a console.log(command, arguments);
we can see if the arguments are getting dropped somewhere when reconnecting.
@reedog117 this was found using node-vpshere. I get built a simple test harness to get all VMs via our chatbot Hubot, then came back a few hours later, triggered the command to get all the VMs and got the error the session was expired. While it makes sense for the session to expire, it seems like that should be handled by node-vsphere-soap, and not trigger errors in node-vsphere.
Moved this from node-vsphere to node-vsphere-soap, since it appears to be an issue in the lib.
I've added this library to a hubot script that controls our Vsphere, so it will be running 24x7. I instantiate the client on start of the bot, but after time with no commands, I get this error