Hi I’ve just moved my website’s server from Webfaction to DigitalOcean.
Before this move, the Patreon API was successfully logging members into my website.
However, after the move, when I try logging into the website with the Patreon API, I now get the error:
{“error”:“invalid_request”,“error_description”:“Mismatching redirect URI.”,“state”:“jc6kvzoDjqzS”}
I tried deleting the old Client and recreating it. Also I’ve tried refreshing the client’s Token several times.
However, the error persists.
The API still works for logging in when I’m using the test version of my website on localhost.
My website is constructed using Django and Django AllAuth, although I’m assuming the issue is just to do with moving servers.
Does anybody know what I can do to solve this problem?
1 Like
This may be due to your site allowing both http:// and https:// urls. In that case one or the other will cause this error. This may have happened because your old server may have been forcing either url format. And new server doesnt.
You can try that by attempting to login using via a test patron account starting from a http:// url, and then a https:// url.
Unless I misunderstand you, I don’t think this is the case. The new server redirects http to https.
The callback URI is also using https.
In that case the best route is to debug which redirect uri gets sent as variable to Patreon in the final stage of oAuth process at your site and compare it with the redirect uri saved at Patreon apps page.
Is it possible it’s some sort of caching on Patreon’s side?
I’ve tested the same website and settings but using a different domain name and it works fine.
Okay it’s working now. Thanks!
1 Like
جوالي
> * List item فهد العنزي [poll type=regular public=true chartType=bar close=2020-05-14T03:32:00.000Z]