-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I'm getting bad request when using project.jobs.list():
>>> import hubstorage
>>> hubstorage.__version__
'0.18.1'
>>> from hubstorage import HubstorageClient
>>> import os
>>> apikey = os.getenv('SHUB_APIKEY')
>>> client = HubstorageClient(apikey)
>>> project = client.get_project(7389)
>>> project.jobs.list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/elias/.local/lib/python2.7/site-packages/hubstorage/project.py", line 69, in list
return self.apiget(_key, params=params)
File "/home/elias/.local/lib/python2.7/site-packages/hubstorage/resourcetype.py", line 40, in apiget
return self.apirequest(_path, method='GET', **kwargs)
File "/home/elias/.local/lib/python2.7/site-packages/hubstorage/resourcetype.py", line 34, in apirequest
return jldecode(self._iter_lines(_path, **kwargs))
File "/home/elias/.local/lib/python2.7/site-packages/hubstorage/resourcetype.py", line 30, in _iter_lines
r.raise_for_status()
File "/home/elias/.local/lib/python2.7/site-packages/requests/models.py", line 837, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: BAD REQUEST for url: http://storage.scrapinghub.com/jobs/7389
Is this expected?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels