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

jotta-download broken (on folders)? #119

Closed
sjurtf opened this issue Aug 1, 2016 · 2 comments
Closed

jotta-download broken (on folders)? #119

sjurtf opened this issue Aug 1, 2016 · 2 comments
Labels
Milestone

Comments

@sjurtf
Copy link

sjurtf commented Aug 1, 2016

There seems to be a problem in the latest version here.

Running 0.5.0 on Python 2.7.
sjurtf@home:~$ pip show jottalib
Metadata-Version: 2.0
Name: jottalib
Version: 0.5.0

Here is a stacktrace using loglevel debug.

sjurtf@home:~$ jotta-download -l debug /Jotta/Archive/
DEBUG:jottalib.JFS:getting url: 'https://www.jottacloud.com/jfs//Jotta/Archive/', extra_headers=None, params=None
send: 'GET /jfs//Jotta/Archive/ HTTP/1.1\r\nHost: www.jottacloud.com\r\nAccept-Encoding: identity\r\nX-JottaAPIVersion: 2.2\r\nUser-Agent: jottalib 0.5.0 (https://github.com/havardgulldahl/jottalib)\r\nAuthorization: Basic \r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Mon, 01 Aug 2016 18:22:46 GMT
header: Accept-Ranges: bytes
header: X-ID: 570367400
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Server: Jetty(8.1.4.v20120524)
DEBUG:requests.packages.urllib3.connectionpool:"GET /jfs//Jotta/Archive/ HTTP/1.1" 200 None
Traceback (most recent call last):
File "/usr/local/bin/jotta-download", line 11, in
sys.exit(download())
File "/usr/local/lib/python2.7/dist-packages/jottalib/cli.py", line 280, in download
total_size = remote_file.size
AttributeError: 'JFSFolder' object has no attribute 'size'

@sjurtf sjurtf changed the title jotta-download broken? jotta-download broken (on folders)? Aug 10, 2016
@sjurtf
Copy link
Author

sjurtf commented Aug 10, 2016

I'll just add that this issue only shows on folders. Downloading files using jotta-download works fine.

@havardgulldahl havardgulldahl added this to the 0.6 milestone Aug 18, 2016
@havardgulldahl
Copy link
Owner

Yes, thank you @sjurtf for the report. We have some code in a PR that will fix that. I'll go through the code.

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

No branches or pull requests

2 participants