Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
randysandy209
7 years agoExplorer | Level 3
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)
[Cross-linking for reference: https://stackoverflow.com/questions/54846821/how-to-solve-writeerror-for-dropbox ]
I see that delta1071 already helped out on the other thread. It sounds like the issue may be that you're using "/HomeSec" as your "dropbox_base_path", which results in an extra leading slash, given the formatting: "/{base_path}/{timestamp}.jpg".
3 Replies
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/54846821/how-to-solve-writeerror-for-dropbox ]
I see that delta1071 already helped out on the other thread. It sounds like the issue may be that you're using "/HomeSec" as your "dropbox_base_path", which results in an extra leading slash, given the formatting: "/{base_path}/{timestamp}.jpg".
- kevin g.15 years agoHelpful | Level 6
for others coming across this via search engine check that your path is free of trailing whitespace
- RTAdmin3 years agoNew member | Level 2
Thanks for posting this, Kevin. This appears to have been the issue for me with an automation to make new folders in Dropbox.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!