# Patreon Token Refresh Failed

**URL:** https://meta.discourse.org/t/patreon-token-refresh-failed/103622
**Category:** Support
**Tags:** patreon
**Created:** [December 6, 2018, 1:53pm UTC](https://meta.discourse.org/t/patreon-token-refresh-failed/103622 "2018-12-06T13:53:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![photonstorm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/photonstorm/32/126144_2.png) [@photonstorm](https://meta.discourse.org/u/photonstorm)
#### Post date: [December 6, 2018, 1:53pm UTC](https://meta.discourse.org/t/patreon-token-refresh-failed/103622/1 "2018-12-06T13:53:08Z")

</div>

Hi,

I’ve followed the set-up guide to the letter but I’m constantly getting an error on my dashboard that the “Patreon Creator’s access and refresh token values are incorrect.”. I enabled verbose logging and see this in the logs:

“Patreon token refresh failed with status: 401. {“error”: “invalid\_grant”}”

My keys are all correct. I’ve regenerated them several times, put in the new ones and it always fails. I even deleted the Patreon client and made a new one from scratch, with the same end result. The webhook works, though. I’ve an active Patreon account with users in, but I just can’t get this part to work. I created a Group for it, created a Badge, but cannot get rid of this error.

Does anyone have a clue what it might be, please?!

Cheers,

Rich

---

<div class="post-metadata">

### Author: ![photonstorm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/photonstorm/32/126144_2.png) [@photonstorm](https://meta.discourse.org/u/photonstorm)
#### Post date: [December 6, 2018, 4:34pm UTC](https://meta.discourse.org/t/patreon-token-refresh-failed/103622/2 "2018-12-06T16:34:38Z")

</div>

So, to follow-up my own post. It appears there must be some kind of delay, either on Patreons side (quite possible) or on Discourse (I’m on the hosted solution) that caused this error to go away on its own after an hour of not touching the admin area. I don’t know how long it actually needs to start working properly, but I did something else for an hour, came back and it no longer errored.

Maybe worth adding to the install guide? That activation of the plugin isn’t instant, although I’m still not sure on which side the delay happened.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [December 6, 2018, 8:06pm UTC](https://meta.discourse.org/t/patreon-token-refresh-failed/103622/3 "2018-12-06T20:06:49Z")

</div>

> [@photonstorm](#):
>
> It appears there must be some kind of delay

> [@vinothkannans](#):
>
> The error message will get removed after a successful sync. So trigger the manual sync from admin page `/admin/plugins/patreon` .

If you manually changed the tokens then you also have to trigger the sync to remove the error message. Anyway it will get removed automatically in next scheduled sync (in ~6 hours).

> [@photonstorm](#):
>
> Maybe worth adding to the install guide?

Sure, I’ll try to improve the error message or I’ll change the functionality as per need. Added to my list 📝

---

<div class="post-metadata">

### Author: ![photonstorm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/photonstorm/32/126144_2.png) [@photonstorm](https://meta.discourse.org/u/photonstorm)
#### Post date: [December 6, 2018, 11:10pm UTC](https://meta.discourse.org/t/patreon-token-refresh-failed/103622/4 "2018-12-06T23:10:56Z")

</div>

If I go to `admin/plugins/patreon` on my install I get an ‘Oops! that page doesn’t exist’ error. I can see all the plugin options under Settings / Plugins though. This is hosted by Discourse themselves, so I’ve no control over the set-up, but would have hoped it’d be done correctly?!
