cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

malformed_path issue?

malformed_path issue?

Explorer | Level 3

Hi there, How do I resolve this??

Traceback (most recent call last:disappointed face:
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:confused face:/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)

 

1 Accepted Solution

Accepted Solutions

Re: malformed_path issue?

Dropboxer

[Cross-linking for reference: https:confused face:/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".

View solution in original post

1 Reply 1

Re: malformed_path issue?

Dropboxer

[Cross-linking for reference: https:confused face:/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".

View solution in original post

Polls
Are you starting new work habits this year?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?