[Openstack] No JSON object could be decoded

2012-05-31 Thread khabou imen
hi everybody, I got this error No JSON object could be decoded when runnig curl -d '{auth: {tenantName: service, passwordCredentialsusername: swift, password: swiftpass}}}' -H Content-type: application/json http://192.168.1.68:35357/v2.0/tokens | python -mjson.tool % Total% Received %

Re: [Openstack] No JSON object could be decoded

2012-05-31 Thread Sam Morrison
Hi Imen, If you take out the pipe to python you should see the correct error. Eg do: curl -d '{auth: {tenantName: service, passwordCredentialsusername: swift, password: swiftpass}}}' -H Content-type: application/json http://192.168.1.68:35357/v2.0/tokens Cheers, Sam On 31/05/12 19:53,

Re: [Openstack] No JSON object could be decoded

2012-05-31 Thread Kevin L. Mitchell
On Thu, 2012-05-31 at 10:53 +0100, khabou imen wrote: curl -d '{auth: {tenantName: service, passwordCredentialsusername: 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