invalid input cause 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Invalid
|
Undecided
|
Unassigned | ||
WSME |
Fix Released
|
Undecided
|
Stéphane Bisinger |
Bug Description
It may be actually wsme bug
find when test master branch, reproduce command:
# curl -g -i -X 'POST' 'http://
HTTP/1.0 500 Internal Server Error
Content-Type: application/json
Content-Length: 140
x-openstack-
Server: Werkzeug/0.9.6 Python/2.7.6
Date: Thu, 05 Mar 2015 04:07:21 GMT
{"error_message": {"debuginfo": null, "faultcode": "Server", "faultstring": "Expecting ',' delimiter or '}': line 1 column 146 (char 145)"}}
the request's body is not an valid json string, but cause 500 error, server side prints:
ERROR wsme.api [-] Server-side error: "Expecting ',' delimiter or '}': line 1 column 146 (char 145)". Detail:
Traceback (most recent call last):
File "/usr/local/
pecan.
File "/usr/local/
from_body = args_from_
File "/usr/local/
body, datatypes, bodyarg=
File "/usr/local/
jdata = json.loads(s)
File "/usr/local/
return _default_
File "/usr/local/
obj, end = self.raw_decode(s)
File "/usr/local/
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting ',' delimiter or '}': line 1 column 146 (char 145)
Changed in wsme: | |
assignee: | nobody → Stéphane Bisinger (kjir) |
status: | New → In Progress |
Changed in ceilometer: | |
status: | New → Won't Fix |
status: | Won't Fix → Invalid |
Changed in wsme: | |
milestone: | none → 0.8.0 |
status: | Fix Committed → Fix Released |
I think so I raised one sometime back on WSME: https:/ /bugs.launchpad .net/wsme/ +bug/1392409