dbox icon indicating copy to clipboard operation
dbox copied to clipboard

Unable to clone my dropbox folders

Open effemmeffe opened this issue 10 years ago • 8 comments

Authorized the app as described in the readme, I tried to clone Public folder from my dropbox I get this error: xbian@xbian ~ $ dbox clone Public[INFO] Encountered a dropbox error. Sleeping 3s and trying again. Error: #<DropboxError: Path '/Public' not found>[INFO] Headers: {"server"=>["nginx"], "date"=>["Tue, 03 Feb 2015 21:18:56 GMT"], "content-type"=>["application/json"], "transfer-encoding"=>["chunked"], "connection"=>["close"]}

This happens for every folder on my dropbox. Any idea?

effemmeffe avatar Feb 03 '15 21:02 effemmeffe

Sorry, I can't re-create this issue. I tried cloning a fresh folder, and it worked for me. Perhaps there was a hiccup in the API on Dropbox's end? What version of dbox are you using? gem list|grep dbox shows 0.8.2 for me.

kenpratt avatar Feb 03 '15 22:02 kenpratt

On 03/feb/2015 23:12 "Ken Pratt" [email protected] wrote:

Sorry, I can't re-create this issue. I tried cloning a fresh folder, and it worked for me. Perhaps there was a hiccup in the API on Dropbox's end? What version of dbox are you using? gem list|grep dbox shows 0.8.2 for me.

Same here. Should I try to create another app and do the authentication again?

effemmeffe avatar Feb 03 '15 22:02 effemmeffe

I just tried again with a brand new app, and it worked for me. Here are the options I selected when creating the app:

screen shot 2015-02-03 at 2 57 45 pm

kenpratt avatar Feb 03 '15 23:02 kenpratt

It may work with other sets of options, but I'm not sure which ones. They've added quite a lot to their API since dbox was created.

kenpratt avatar Feb 03 '15 23:02 kenpratt

I'll try tonight, thanks.

On Wed, Feb 4, 2015 at 12:02 AM, Ken Pratt [email protected] wrote:

It may work with other sets of options, but I'm not sure which ones. They've added quite a lot to their API since dbox was created.

— Reply to this email directly or view it on GitHub https://github.com/kenpratt/dbox/issues/8#issuecomment-72755101.

effemmeffe avatar Feb 04 '15 07:02 effemmeffe

Problem solved, I created a new app and now it's working. But it works only if I put the constants before the dbox command, I put all 4 constants in my .bashrc, logged out, logged in, echoed constant and it's there as expected, but if I run dbox without putting constants before the call I get an error message that tells me to set the environment variable. I'm using xbian on my RPI. Any idea?

effemmeffe avatar Feb 04 '15 17:02 effemmeffe

Another question: how does clone works? It downloads the folder, but it I delete it and then I sync the folder will be deleted also on Dropbox?

effemmeffe avatar Feb 04 '15 17:02 effemmeffe

Glad to hear it's working for you. That's odd about the environment variables, perhaps there's something odd about the terminal or Ruby installation.

If you clone and then delete the local folder, it won't delete anything remotely, as long as you're deleting the top-level folder that you cloned. If you delete things inside that folder, they'll be removed.

If you do want to delete a remote folder, there's a dbox command for that: dbox delete foldername

kenpratt avatar Feb 04 '15 18:02 kenpratt