Laverna: Show the dropbox uri when syncing to solve http 400 errors

Created on 17 Mar 2016  ·  10Comments  ·  Source: Laverna/laverna

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.

bug

Most helpful comment

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!

All 10 comments

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

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

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!

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

@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

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

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.

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 .

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

I have the same issue in linux

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stonedreamforest picture stonedreamforest  ·  9Comments

valvin1 picture valvin1  ·  3Comments

hgaronfolo picture hgaronfolo  ·  5Comments

LuxGiammi picture LuxGiammi  ·  7Comments

magowiz picture magowiz  ·  7Comments