Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port range for redirect URI calculated wrong #283

Closed
Elaborendum opened this issue May 19, 2021 · 15 comments
Closed

Port range for redirect URI calculated wrong #283

Elaborendum opened this issue May 19, 2021 · 15 comments
Labels

Comments

@Elaborendum
Copy link

Every since the last update, this dialog appears everytime I try to open the remote database from my DropBox account:
image

I can still access my account normally, so It's not blocked or anything.

@Kyrodan
Copy link
Owner

Kyrodan commented May 20, 2021

Have you already tried to re-authenticate?

@Wishmaster172
Copy link

I have the same problem here.

I tried to delete my Dropbox Account from the list to re-authenticate, but I got another error. :(
screely-1621495428718

@erdmenchen
Copy link

I can confirm, I have the same issue since updating to v2.0

@yetanotherjr
Copy link

yetanotherjr commented May 20, 2021

I had the same issue ; solved it with a "Check" of the account.
(I did clean the local cache first, don't know if it helped or not)

Go to Tools > KeeAnywhere Settings
image

Select your Dropbox account then "Check"
image

You'll be redirected to the Dropbox page to authorize the application again.

Afterwards, check should be OK again :
image

EDIT : to clear the cache, go to KeeAnywhere Settings > "General" tab then click "Clear Cache" :
image

@xwitty
Copy link

xwitty commented May 20, 2021

in case yetanotherjr's hint is not working:
are you using a http/https-proxy? - maybe links back to Issue #280

@Wishmaster172
Copy link

There is nothing for my to "Check", because I deletet my account to reconnect it. :(
No, I don't use any Proxy, I'm just directly connected to the Internet.

@mikesuderman
Copy link

I had the same problem, was able to reconnect after:

  • deleting folder "KeeAnywhereOfflineCache",
  • Removing Dropbox link
  • Signing into Dropbox in my browser
  • Adding new "Keepass Anywhere" connection to Dropbox - Restricted.

@Wishmaster172
Copy link

I followed the same steps, but I'm still facing the same problem. :(

The folder is located here: C:\Users%USERNAME%\AppData\Roaming\KeePass\KeeAnywhereOfflineCache
And the Cache can be cleared also via Plugin Settings:
2021-05-20 17_38_06-KeeAnywhere Settings

But this didn't work for me. :(

@Elaborendum
Copy link
Author

yetanotherjr's fix worked for me, reauthorized it and everything's working now. In my case, I didn't clear the cache.

@Kyrodan
Copy link
Owner

Kyrodan commented May 21, 2021

So this can be closed?
If problems still appear:
I released v2.0.2 a few minutes ago, that should fix this issue.
Please give it a try and reopen this issue, if your problem is still present.
Please read "notworthy" in changelog.

@Kyrodan Kyrodan closed this as completed May 21, 2021
@Wishmaster172
Copy link

Sorry, I'm still facing the same issue.

  • I updated to 2.02.
  • I deleted Plugin Cache and restarted KeePass
  • I tried to add a new account (because I deleted the old one before)

And I still receive
Invalid redirect_uri. It must exactly match one of the redirect URIs you've pre-configured for your app (including the path).

@Kyrodan
Copy link
Owner

Kyrodan commented May 21, 2021

Can you post the redirect uri here? It's part of the Browser URL.

@Kyrodan Kyrodan reopened this May 21, 2021
@Wishmaster172
Copy link

Sure. This is the whole URL:

https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=320uxzdt4zl484z&redirect_uri=http://127.0.0.1:49588/&state=664b1bdb9fae46d891e1f36c6088c68d&token_access_type=offline&scope=account_info.read%20files.metadata.write%20files.metadata.read%20files.content.write%20files.content.read&code_challenge_method=S256&code_challenge=<xyz>

@Kyrodan
Copy link
Owner

Kyrodan commented May 21, 2021

Okay, I found the problem, I'm so stupid ggg
I will release 2.0.3 later this day which hopefully fixes this problem.

@Kyrodan Kyrodan changed the title Can't open remote database from DropBox Port range for redirect URI calculated wrong May 21, 2021
@Kyrodan Kyrodan added the bug label May 21, 2021
@Kyrodan
Copy link
Owner

Kyrodan commented May 21, 2021

@Kyrodan Kyrodan closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants