I have validated that when detailed=False I get a valid response.
detailed=True does work with mongodb driver.
I'm running with the stable/kilo branch of zaqar.
Ron Rees
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Fei Long Wang
Sent: Sunday, September 06, 2015 7:14 PM
To: Rees, Ronald J (Ron)
Subject: [COMMERCIAL] [Bug 1492439] Re: queue list with detailed=true fails with redisstorage backend
Hi Ronald, thanks for reporting this. I just tried to query /queues?detailed=True with redis server and it works fine on my local.
So could you let me know if it works with detailed=False or mongodb driver on your env? Thanks.
Title:
queue list with detailed=true fails with redis storage backend
Status in zaqar:
New
Bug description:
The following exception occurs for the zaqar server when a client issues a v1 queues list API with detailed=true option set : GET /v1/queues?detailed=true HTTP/1.1
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/falcon/api.py", line 96, in __call__
responder(req, resp, **params) # pragma: no cover
File "/usr/local/lib/python2.7/dist-packages/falcon/api_helpers.py", line 262, in do_before
responder(req, resp, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/falcon/api_helpers.py", line 262, in do_before
responder(req, resp, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/falcon/api_helpers.py", line 262, in do_before
responder(req, resp, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/falcon/api_helpers.py", line 262, in do_before
responder(req, resp, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/falcon/api_helpers.py", line 262, in do_before
responder(req, resp, **kwargs)
File "/opt/stack/zaqar/zaqar/transport/wsgi/v1_0/queues.py", line 138, in on_get
resp.body = utils.to_json(response_body)
File "/opt/stack/zaqar/zaqar/transport/utils.py", line 60, in to_json
return json.dumps(obj, ensure_ascii=False)
File "/usr/lib/python2.7/json/__init__.py", line 250, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "/usr/lib/python2.7/json/encoder.py", line 210, in encode
return ''.join(chunks)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128)
135.185.84.169 - - [04/Sep/2015 19:38:36] "GET /v1/queues?detailed=true HTTP/1.1" 500 59
I have validated that when detailed=False I get a valid response.
detailed=True does work with mongodb driver.
I'm running with the stable/kilo branch of zaqar.
Ron Rees
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Fei Long Wang
Sent: Sunday, September 06, 2015 7:14 PM
To: Rees, Ronald J (Ron)
Subject: [COMMERCIAL] [Bug 1492439] Re: queue list with detailed=true fails with redisstorage backend
Hi Ronald, thanks for reporting this. I just tried to query /queues? detailed= True with redis server and it works fine on my local.
So could you let me know if it works with detailed=False or mongodb driver on your env? Thanks.
-- /bugs.launchpad .net/bugs/ 1492439
You received this bug notification because you are subscribed to the bug report.
https:/
Title:
queue list with detailed=true fails with redis storage backend
Status in zaqar:
New
Bug description:
GET /v1/queues? detailed= true HTTP/1.1
The following exception occurs for the zaqar server when a client issues a v1 queues list API with detailed=true option set :
Traceback (most recent call last): python2. 7/wsgiref/ handlers. py", line 85, in run self.environ, self.start_ response) lib/python2. 7/dist- packages/ falcon/ api.py" , line 96, in __call__ (req, resp, **params) # pragma: no cover lib/python2. 7/dist- packages/ falcon/ api_helpers. py", line 262, in do_before (req, resp, **kwargs) lib/python2. 7/dist- packages/ falcon/ api_helpers. py", line 262, in do_before (req, resp, **kwargs) lib/python2. 7/dist- packages/ falcon/ api_helpers. py", line 262, in do_before (req, resp, **kwargs) lib/python2. 7/dist- packages/ falcon/ api_helpers. py", line 262, in do_before (req, resp, **kwargs) lib/python2. 7/dist- packages/ falcon/ api_helpers. py", line 262, in do_before (req, resp, **kwargs) zaqar/zaqar/ transport/ wsgi/v1_ 0/queues. py", line 138, in on_get json(response_ body) zaqar/zaqar/ transport/ utils.py" , line 60, in to_json python2. 7/json/ __init_ _.py", line 250, in dumps keys=sort_ keys, **kw).encode(obj) python2. 7/json/ encoder. py", line 210, in encode Error: 'ascii' codec can't decode byte 0x80 in position 1: ordinal not in range(128) detailed= true HTTP/1.1" 500 59
File "/usr/lib/
self.result = application(
File "/usr/local/
responder
File "/usr/local/
responder
File "/usr/local/
responder
File "/usr/local/
responder
File "/usr/local/
responder
File "/usr/local/
responder
File "/opt/stack/
resp.body = utils.to_
File "/opt/stack/
return json.dumps(obj, ensure_ascii=False)
File "/usr/lib/
sort_
File "/usr/lib/
return ''.join(chunks)
UnicodeDecode
135.185.84.169 - - [04/Sep/2015 19:38:36] "GET /v1/queues?
To manage notifications about this bug go to: /bugs.launchpad .net/zaqar/ +bug/1492439/ +subscriptions
https:/