Our Patreon plugin was working for months, but now I have the message in the admin panel “Patreon Creator’s access and refresh token values are incorrect”. This has happened before and we’ve followed the instructions and it worked again. But this time it won’t go away.
I’ve hit the “update patreon” button in the admin patreon panel. I’ve checked the rails log and can see the patreon job ran successfully. The only output is where it’s trying to award badges to old users and gets a 404 but that doesn’t seem to be a problem. I’ve also kicked the patreon jobs in /sidekiq, and again it runs successfully.
So it seems the tokens really don’t match. Unfortunately I don’t have permission to access our Patreon account. The boss copies and pastes the codes to me and I enter them in Discourse. We’ve done this twice with no joy.
Any other troubleshooting advice?
Edit: Looks like I could try the Patreon API using the same credentials. API Reference
I got the same error using the API, so I guess it has nothing to do with Discourse. Still would be interested if anyone else has had the same issue.
import patreon
from pprint import pprint
access_token = '*** I pasted the Creator's Access Token here ***'
api_client = patreon.API(access_token)
campaign_response = api_client.get_campaigns(10)
pprint(campaign_response)
{u'errors': [{u'code': 1,
u'code_name': u'Unauthorized',
u'detail': u"The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
u'id': u'b11c8833-90ee-4a21-802b-9b4dfc4882f1',
u'status': u'401',
u'title': u'Unauthorized'}]}
Ciao,
stesso errore quando chiamo l’API per ottenere le campagne:
{ "errors": [
{
"code": 1,
"code_name": "Unauthorized",
"detail": "Il server non è riuscito a verificare che tu abbia l'autorizzazione per accedere all'URL richiesto. Hai fornito credenziali errate (ad esempio una password sbagliata) oppure il tuo browser non sa come fornire le credenziali richieste.",
"id": "2861b3d8-08e1-42ff-86aa-5418ce4f6656",
"status": "401",
"title": "Unauthorized"
}
]
}
Avevamo questo problema diverse volte quando ho pubblicato all’inizio di quest’anno. Da allora ha funzionato perfettamente. Non ho idea del perché, tranne che, come già menzionato, il problema è dalla parte di Patreon, non di Discourse. Ero limitato perché non avevo accesso all’account Patreon; supponendo che tu abbia accesso, ti consiglio di contattarli.
Stiamo riscontrando di nuovo questo problema, dopo mesi di funzionamento corretto. Ho aggiornato il token di accesso del creatore e il token di aggiornamento del creatore nelle impostazioni Patreon di Discourse, ma continuo a ricevere l’errore sulla dashboard.
Come menzionato sopra, non si tratta di un problema di Discourse, ma ho pensato di pubblicare qui nel caso in cui altri abbiano riscontrato lo stesso problema negli ultimi giorni. Forse c’è un pattern.