Getting upload progress returns Progress Not Found

I'm uploading a file identified by an UUID in the URL. When the upload status is retrieved from the path/progress endpoint it returns "Progress not found." The upload does succeed though. Here's my sample Python code:

 

Uploader:

Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from uuid import uuid4
>>> from smartfile import BasicClient
>>>
>>> api = BasicClient(KEY, PASSW)

>>> api.get("/ping")
{'ping': 'pong'}
>>>
>>> uuid = uuid4()
>>> uuid
UUID('8de780de-8da9-4962-a294-6bbd478aec68')
>>>
>>> with open(r"D:\Google_Drive\Programming\python\lnlogs\tests\uploader\20MB.dat", encoding="cp850") as f:
...     api.post("/path/data/?X-Upload-UUID={}".format(uuid), file=f)
...

 

Create another client to query the ongoing upload:

Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from smartfile import BasicClient
>>>
>>> api = BasicClient(KEY, PASSW)

>>> api.get("/ping")
{'ping': 'pong'}
>>>
>>> api.get("/path/progress/{}".format("8de780de-8da9-4962-a294-6bbd478aec68"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Google_Drive\Programming\python\lnlogs\env\lib\site-packages\smartfile\__init__.py", line 136, in
et
    return self._request('get', endpoint, id=id, params=kwargs)
  File "D:\Google_Drive\Programming\python\lnlogs\env\lib\site-packages\smartfile\__init__.py", line 121, in
request
    return self._do_request(request, url, **kwargs)
  File "D:\Google_Drive\Programming\python\lnlogs\env\lib\site-packages\smartfile\__init__.py", line 218, in
do_request
    return super(BasicClient, self)._do_request(*args, **kwargs)
  File "D:\Google_Drive\Programming\python\lnlogs\env\lib\site-packages\smartfile\__init__.py", line 68, in _
o_request
    raise ResponseError(response)
smartfile.errors.ResponseError: Response 404: Error: b'{"detail": "Progress not found."}'
2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Good day Michel,

     

    I was able to reproduce the issue you are seeing and have made a ticket for work to be done to get this endpoint working as intended.

    Reply Like
  • David Galitsky Hello David,

    Thank you for the looking into this. I appreciate the update.

    Reply Like
reply to topic
Like Follow
  • 4 mths agoLast active
  • 2Replies
  • 137Views
  • 2 Following