Comment 1 for bug 1048565

Revision history for this message
Brian Waldon (bcwaldon) wrote : Re: Invalid JSON request is returning 500 ERROR instead of Bad Request 400 exception

I'm not able to reproduce this. Can you share the logs of the relevant 500s?

vagrant@precise:~$ curl -d '{"erver": {"min_count": 1, "flavorRef": "1", "name": "test-3", "imageRef": "bc81d48e-656f-4501-8909-3401121cdf5b", "max_count": 1}}' -H 'content-type: application/json' -i -X POST -H 'x-auth-token: 9a344bf6c1f2456bb66595603a0c777f' http://localhost:8774/v2/2dc7470e18614d54a960289c2bafae3b/servers

HTTP/1.1 422 Unprocessable Entity
Content-Length: 90
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-a10e9102-a54a-462f-aa70-f5331371d706
Date: Tue, 11 Sep 2012 21:43:28 GMT

{"computeFault": {"message": "Unable to process the contained instructions", "code": 422}}