We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

randysandy209's avatar
randysandy209
Explorer | Level 3
6 years ago

malformed_path issue?

Hi there, How do I resolve this??

Traceback (most recent call last):
File "pi_surveillance.py", line 123, in <module>
client.files_upload(open(t.path, "rb").read(), path)
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/dropbox/base.py", line 2293, in files_upload
f,
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/dropbox/dropbox.py", line 296, in request
user_message_locale)
dropbox.exceptions.ApiError: ApiError('ec8156314fa260e143cde3a973d063a7', UploadError('path', UploadWriteFailed(reason=WriteError('malformed_path', None), upload_session_id='AAAAAAAAABYIi23EoDg86Q')))

I named my base path conf file as according to the answer in this theme:

https://www.dropboxforum.com/t5/Discuss-Developer-API/Python-3-5-API-upload-error/m-p/317699#M345

my conf file:  "dropbox_base_path": "/HomeSec",

(I have a dropbox folder named HomeSec)