Closed StefanScherer closed 10 years ago
Cleaned up the PR a little bit, and with some further testing I now see my other favorite error:
$ vagrant up --provider=vcloud
Bringing machine 'tst' up with 'vcloud' provider...
Bringing machine 'tst2' up with 'vcloud' provider...
==> tst: Building vApp...
/Users/stefan/.vagrant.d/gems/gems/vagrant-vcloud-0.4.0/lib/vagrant-vcloud/driver/base.rb:373:in `send_request': Warning: unattended code 400 Bad Request: The requested operation will exceed the VDC's storage quota. (RuntimeError)
Out of VDC's storage quota ;-)
Fixed in 0.4.1
Here is a fix for #88. In case of HTTP 400 response, it will parse the XML response.body and read the message attribute and append that to the message raised.
The error from #88 now looks like this, even without debug logging:
Now it is easier to find what caused the problem.
I have also added the intense logging if debug logging is turned on, so also there the response appears with header and body.