{"action":"created","issue":{"url":"https://api.github.com/repos/ewjoachim/dropbox-python-sdk-py3/issues/1","labels_url":"https://api.github.com/repos/ewjoachim/dropbox-python-sdk-py3/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ewjoachim/dropbox-python-sdk-py3/issues/1/comments","events_url":"https://api.github.com/repos/ewjoachim/dropbox-python-sdk-py3/issues/1/events","html_url":"https://github.com/ewjoachim/dropbox-python-sdk-py3/issues/1","id":108809854,"number":1,"title":"upload_chunked() exception","user":{"login":"Nicolasp38","id":14884737,"avatar_url":"https://avatars.githubusercontent.com/u/14884737?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicolasp38","html_url":"https://github.com/Nicolasp38","followers_url":"https://api.github.com/users/Nicolasp38/followers","following_url":"https://api.github.com/users/Nicolasp38/following{/other_user}","gists_url":"https://api.github.com/users/Nicolasp38/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicolasp38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicolasp38/subscriptions","organizations_url":"https://api.github.com/users/Nicolasp38/orgs","repos_url":"https://api.github.com/users/Nicolasp38/repos","events_url":"https://api.github.com/users/Nicolasp38/events{/privacy}","received_events_url":"https://api.github.com/users/Nicolasp38/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-29T07:24:14Z","updated_at":"2015-09-29T13:09:13Z","closed_at":null,"body":"Hi,\r\n\r\nI am using the following code : \r\n    uploader = dbc.get_chunked_uploader(f, file_length)\r\n    while uploader.offset < file_length :\r\n        try:\r\n            print(uploader.offset)\r\n            uploader.upload_chunked(chunk_size=1*1024*1024)\r\n        except dropbox.rest.ErrorResponse as e :\r\n            # perform error handling and retry logic\r\n            pass\r\n    uploader.finish(dst_path)\r\n\r\nI get an exception :\r\n  File \"upload_dir.py\", line 44, in upload_file\r\n    uploader.upload_chunked()\r\n  File \"/mnt/sdhc-data/dropbox/dropbox/client.py\", line 1176, in upload_chunked\r\n    StringIO(self.last_block), next_chunk_size, self.offset, self.upload_id)\r\nTypeError: initial_value must be str or None, not bytes\r\n\r\nNicolas"},"comment":{"url":"https://api.github.com/repos/ewjoachim/dropbox-python-sdk-py3/issues/comments/144053497","html_url":"https://github.com/ewjoachim/dropbox-python-sdk-py3/issues/1#issuecomment-144053497","issue_url":"https://api.github.com/repos/ewjoachim/dropbox-python-sdk-py3/issues/1","id":144053497,"user":{"login":"Nicolasp38","id":14884737,"avatar_url":"https://avatars.githubusercontent.com/u/14884737?v=3","gravatar_id":"","url":"https://api.github.com/users/Nicolasp38","html_url":"https://github.com/Nicolasp38","followers_url":"https://api.github.com/users/Nicolasp38/followers","following_url":"https://api.github.com/users/Nicolasp38/following{/other_user}","gists_url":"https://api.github.com/users/Nicolasp38/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicolasp38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicolasp38/subscriptions","organizations_url":"https://api.github.com/users/Nicolasp38/orgs","repos_url":"https://api.github.com/users/Nicolasp38/repos","events_url":"https://api.github.com/users/Nicolasp38/events{/privacy}","received_events_url":"https://api.github.com/users/Nicolasp38/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T13:09:13Z","updated_at":"2015-09-29T13:09:13Z","body":"Bonjour Joachim,\r\n\r\nThanks for the github link. I was not aware of it. On Dropbox site, when downloading Python library, I get another (older ?) one.\r\nThe bug is still there but as the associated uploading method is obsolete, the bug is obsolete also ;)\r\n\r\nThanks\r\nNicolas"}}