Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.19k stars 801 forks source link

Show the dropbox uri when syncing to solve http 400 errors #423

Open ericchartier opened 8 years ago

ericchartier commented 8 years ago

When trying to sync a new instance of laverna with dropbox, I have to add the uri key to the app config on dropbox, but I have no idea what that uri is.

What I'm using on the website laverna.cc no longer works with the standalone installation on Windows. On the website it is either https://laverna.cc/app/dropbox.html or https://laverna.cc/dropbox.html, not sure which one is good anymore.

In the past, dropbox error messages would show the invalid uri but in that precise case it does not appear.

ericchartier commented 8 years ago

How am I supposed to sync with dropbox on standalone version?

CrystalMethod commented 8 years ago

I'm also interested in this use case. :+1:

colinleefish commented 8 years ago

Update: I happened to find that, after I open Laverna, it listens on port 9100 and is serving a web interface which looks very much like the online service. I tried to do authentication in this "localhost" webapp and found that the redirect_uri is actually http://localhost:9100/dropbox.html. After I put this link inside Dropbox Developer Page and redo the auth and this time I reached the login page.

But it was too early to be happy: After I typed in my ID/password, a 404 showed up saying it can't find localhost 9100 dropbox.

FYI. I'm using Mac OS.

I encountered exactly the same problem. Any help? Thanks very much!

wwebfor commented 8 years ago

All of you are using your own API key for Dropbox, correct?

CrystalMethod commented 8 years ago

@colinleefish Thanks for the hint to the correct redirect_uri.

Using 0.7.2-RC3 (Mac OS X) I was able to sync Laverna desktop with my Dropbox account. And using "export config" -> "import config" I was able to sync notes to two Laverna instances (Desktop / Laptop) #219

colinleefish commented 8 years ago

@wwebfor I'm using the API key I created as instructed in the config page.

jn0 commented 8 years ago

laverna-dropbox MacOS 10.10.5, Laverna from here - supposed to be a local desktop app as described in README.md. No "laverna" executable for Mac/Linux. The app started by "open index.html". Attempt to setup the sync to dropbox failed.

CrystalMethod commented 8 years ago

No, you're using the static version supposed to be used for self hosting Laverna. Please try the native application to be found here: https://github.com/Laverna/laverna/releases/tag/0.7.2-RC3 .

valvin1 commented 8 years ago

in 0.7.2-RC4 laverna listens on TCP/9000 instead of TCP/9100 which means we have to add http://localhost:9000/dropbox.htmlin the redirect uri's Dropbox application settings

winuxue commented 6 years ago

I have the same issue in linux