Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

queues.list() requires client_id #244

Closed
claco opened this issue Nov 9, 2013 · 1 comment
Closed

queues.list() requires client_id #244

claco opened this issue Nov 9, 2013 · 1 comment

Comments

@claco
Copy link

claco commented Nov 9, 2013

Although not listed in the sample, queues.list() dies without claim_id being set; which seems a bit of an odd requirement just to list queues as it's not a message related operation.

https://github.com/rackspace/pyrax/blob/master/samples/queueing/list_queues.py
http://docs.rackspace.com/queues/api/v1.0/cq-devguide/content/commonHeaders.html

 → python ./list_queues.py
Traceback (most recent call last):
  File "./list_queues.py", line 27, in <module>
    queues = pq.list()
  File "/Library/Python/2.7/site-packages/pyrax/client.py", line 87, in list
    return self._manager.list(limit=limit, marker=marker)
  File "/Library/Python/2.7/site-packages/pyrax/manager.py", line 80, in list
    return self._list(uri, return_raw=return_raw)
  File "/Library/Python/2.7/site-packages/pyrax/queueing.py", line 76, in _list
    body=None, return_raw=return_raw)
  File "/Library/Python/2.7/site-packages/pyrax/manager.py", line 142, in _list
    resp, resp_body = self.api.method_get(uri)
  File "/Library/Python/2.7/site-packages/pyrax/client.py", line 283, in method_get
    return self._api_request(uri, "GET", **kwargs)
  File "/Library/Python/2.7/site-packages/pyrax/client.py", line 264, in _api_request
    resp, body = self._time_request(safe_uri, method, **kwargs)
  File "/Library/Python/2.7/site-packages/pyrax/client.py", line 225, in _time_request
    resp, body = self.request(uri, method, **kwargs)
  File "/Library/Python/2.7/site-packages/pyrax/client.py", line 205, in request
    self._add_custom_headers(kwargs["headers"])
  File "/Library/Python/2.7/site-packages/pyrax/queueing.py", line 515, in _add_custom_headers
    raise exc.QueueClientIDNotDefined("You must supply a client ID to "
pyrax.exceptions.QueueClientIDNotDefined: You must supply a client ID to work with Queues.
@claco
Copy link
Author

claco commented Nov 13, 2013

Thank you sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants