Search code examples
jclouds

How to see request payload in jclouds?


I'm trying to connect to an OpenStack system using jclouds and get the following error:

org.jclouds.rest.AuthorizationException: POST https://foo.bar.org:5000/v3/auth/tokens HTTP/1.1 -> HTTP/1.1 401 Unauthorized
  at org.jclouds.openstack.nova.v2_0.handlers.NovaErrorHandler.handleError(NovaErrorHandler.java:93)

(This happens when I run val region = conn.getConfiguredRegions.iterator.next)

Is there a way for me to see the request payload to the POST request to help in diagnosing the issue further?


Solution

  • Setting jclouds.headers=DEBUG and jclouds.wire=DEBUG should reveal the request.