Comment 2 for bug 1492439

Revision history for this message
Ronald Rees (ron-rees) wrote : RE: [COMMERCIAL] [Bug 1492439] Re: queue list with detailed=true fails with redisstorage backend

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.

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/1492439

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/zaqar/+bug/1492439/+subscriptions