Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__.'/vendor/autoload.php';
- use SircampXenapiXen as Xen;
- $ip='172.31.100.14';
- $username='root';
- $password='root@123';
- try{
- $xen = new Xen($ip,$username,$password);
- }catch(XenConnectionException $e){
- echo $e;
- }
- // $vm = $xen->getVMByNameLabel("centos6.7");
- // echo $vm->getUUID()->getValue();
- //$vm->cleanShutdown();
- ?>
- Fatal error: Uncaught exception 'GuzzleHttpRingExceptionRingException' with message 'Error creating resource: [message] URL is invalid: 172.31.100.14 [file] /var/www/htmt/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 403' in /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php:177 Stack trace: #0 /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php(412): GuzzleHttpRingClientStreamHandler->createResource(Object(Closure), Array, Array) #1 /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php(220): GuzzleHttpRingClientStreamHandler->createStreamResource('172.31.100.14', Array, Array, Resource id #5) #2 /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php(34): GuzzleHttpRingClientStreamHandler->createStream('172.31.100.14', Array) #3 /var/www/html/vendor/guzzlehttp/guzzle/src/RequestFsm.php(129): GuzzleHttpRingClientStreamHandler->__invoke(Array) #4 /var/www/html in /var/www/html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 51
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement