[Openstack] No JSON object could be decoded

Kevin L. Mitchell kevin.mitchell at rackspace.com
Thu May 31 14:51:09 UTC 2012


On Thu, 2012-05-31 at 10:53 +0100, khabou imen wrote:
> curl -d '{"auth": {"tenantName": "service",
> "passwordCredentials""username": "swift", "password": "swiftpass"}}}'
> -H "Content-type: application/json"
> http://192.168.1.68:35357/v2.0/tokens | python -mjson.tool

Your submitted JSON data is improperly formatted, unless that's a c&p
error.  You appear to have left out a ':' and a '{' after the
"passwordCredentials" dictionary key.
-- 
Kevin L. Mitchell <kevin.mitchell at rackspace.com>





More information about the Openstack mailing list