{"action":"created","issue":{"url":"https://api.github.com/repos/scrapinghub/python-hubstorage/issues/38","labels_url":"https://api.github.com/repos/scrapinghub/python-hubstorage/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/scrapinghub/python-hubstorage/issues/38/comments","events_url":"https://api.github.com/repos/scrapinghub/python-hubstorage/issues/38/events","html_url":"https://github.com/scrapinghub/python-hubstorage/issues/38","id":116556369,"number":38,"title":"jobs.list() is broken","user":{"login":"eliasdorneles","id":37565,"avatar_url":"https://avatars.githubusercontent.com/u/37565?v=3","gravatar_id":"","url":"https://api.github.com/users/eliasdorneles","html_url":"https://github.com/eliasdorneles","followers_url":"https://api.github.com/users/eliasdorneles/followers","following_url":"https://api.github.com/users/eliasdorneles/following{/other_user}","gists_url":"https://api.github.com/users/eliasdorneles/gists{/gist_id}","starred_url":"https://api.github.com/users/eliasdorneles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliasdorneles/subscriptions","organizations_url":"https://api.github.com/users/eliasdorneles/orgs","repos_url":"https://api.github.com/users/eliasdorneles/repos","events_url":"https://api.github.com/users/eliasdorneles/events{/privacy}","received_events_url":"https://api.github.com/users/eliasdorneles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T14:15:51Z","updated_at":"2015-11-14T16:18:09Z","closed_at":null,"body":"I'm getting bad request when using project.jobs.list():\r\n\r\n```\r\n>>> import hubstorage\r\n>>> hubstorage.__version__\r\n'0.18.1'\r\n>>> from hubstorage import HubstorageClient\r\n>>> import os\r\n>>> apikey = os.getenv('SHUB_APIKEY')\r\n>>> client = HubstorageClient(apikey)\r\n>>> project = client.get_project(7389)\r\n>>> project.jobs.list()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/elias/.local/lib/python2.7/site-packages/hubstorage/project.py\", line 69, in list\r\n    return self.apiget(_key, params=params)\r\n  File \"/home/elias/.local/lib/python2.7/site-packages/hubstorage/resourcetype.py\", line 40, in apiget\r\n    return self.apirequest(_path, method='GET', **kwargs)\r\n  File \"/home/elias/.local/lib/python2.7/site-packages/hubstorage/resourcetype.py\", line 34, in apirequest\r\n    return jldecode(self._iter_lines(_path, **kwargs))\r\n  File \"/home/elias/.local/lib/python2.7/site-packages/hubstorage/resourcetype.py\", line 30, in _iter_lines\r\n    r.raise_for_status()\r\n  File \"/home/elias/.local/lib/python2.7/site-packages/requests/models.py\", line 837, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nrequests.exceptions.HTTPError: 400 Client Error: BAD REQUEST for url: http://storage.scrapinghub.com/jobs/7389\r\n```\r\n\r\nIs this expected?"},"comment":{"url":"https://api.github.com/repos/scrapinghub/python-hubstorage/issues/comments/156716448","html_url":"https://github.com/scrapinghub/python-hubstorage/issues/38#issuecomment-156716448","issue_url":"https://api.github.com/repos/scrapinghub/python-hubstorage/issues/38","id":156716448,"user":{"login":"dangra","id":37369,"avatar_url":"https://avatars.githubusercontent.com/u/37369?v=3","gravatar_id":"","url":"https://api.github.com/users/dangra","html_url":"https://github.com/dangra","followers_url":"https://api.github.com/users/dangra/followers","following_url":"https://api.github.com/users/dangra/following{/other_user}","gists_url":"https://api.github.com/users/dangra/gists{/gist_id}","starred_url":"https://api.github.com/users/dangra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangra/subscriptions","organizations_url":"https://api.github.com/users/dangra/orgs","repos_url":"https://api.github.com/users/dangra/repos","events_url":"https://api.github.com/users/dangra/events{/privacy}","received_events_url":"https://api.github.com/users/dangra/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T16:18:09Z","updated_at":"2015-11-14T16:18:09Z","body":"@eliasdorneles, @bertinatto is correct. Lists on `/jobs/` no longer works and `/jobq/NN/list` should used instead. We can provide a semi backward compatible solution routing /jobs/NN/list to jobq/NN/list, the main difference is that not all job metadata is returned (you have to ask for the specific meta fields) and the order of the result changed. Most recent jobs are returned first. \r\n\r\nAccording to service logs the projects using that api were already migrated, did I miss one? "}}