Patrons can't login to my site (time out and invalid grant errors)

Hi,

my patrons have been reporting issues with logging in. Essentially, when they hit “Allow” they get redirected back to website but not logged in. I checked it myself and it happens every X time I try. The error I see in logs is:

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

I’ve already talked with my hosting service and they checked this and said that it is Patreon who is blocking the connection and pointing out that maybe this error has something to do with it - the logs are full of that:

fetch_user - API v2 Class - UUID bdffb2c3-07f2-43a3-b1f5-416a5b65d57d - Response code: 401 Response :{"errors":[{"code":1,"code_name":"Unauthorized","detail":"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.","id":"bdffb2c3-07f2-43a3-b1f5-416a5b65d57d","status":"401","title":"Unauthorized"}]}

Any ideas what might be doing that? Why I’m getting those errors and being blocked by Patreon?

My site is using:
WP 5.3.2 with PHP 7.3.23
Patreon WordPress 1.6.8 with API v2
Patron Plugin Pro 1.4.6
Patreon Button, Widgets and Plugin 2.0.9

The last 50 connection errors are:

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID a250f7e7-d4be-4eee-8ab2-74ad8ff9a1a0 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“a250f7e7-d4be-4eee-8ab2-74ad8ff9a1a0”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID ef20a3dd-cac1-4c77-9588-7ff18942f098 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“ef20a3dd-cac1-4c77-9588-7ff18942f098”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID aac9fbb3-7ab1-40a3-bbf9-7667db5d2db4 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“aac9fbb3-7ab1-40a3-bbf9-7667db5d2db4”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

fetch_user - API v2 Class - UUID b33e1f20-9d2c-4061-80e4-2645c2d9bfed - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“b33e1f20-9d2c-4061-80e4-2645c2d9bfed”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID ce69569c-6fbc-40c0-b140-52791be0cfa8 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“ce69569c-6fbc-40c0-b140-52791be0cfa8”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

cURL error 28: Failed to connect to api.patreon.com port 443: Connection timed out

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

cURL error 28: Failed to connect to api.patreon.com port 443: Connection timed out

0 days ago

fetch_user - API v2 Class - UUID ccafa614-b862-42ed-8eb5-351fedcc1cb3 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“ccafa614-b862-42ed-8eb5-351fedcc1cb3”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID da0ab6b4-d302-4b00-b8a4-8296f52e40db - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“da0ab6b4-d302-4b00-b8a4-8296f52e40db”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID 516d1ed7-9e45-46aa-a8ce-f4ba55e7a604 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“516d1ed7-9e45-46aa-a8ce-f4ba55e7a604”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID ee0f31c4-eb44-4dfa-bbde-0207d0cc95f9 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“ee0f31c4-eb44-4dfa-bbde-0207d0cc95f9”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID 0fa5b154-7bef-436b-a94b-d852747e286d - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“0fa5b154-7bef-436b-a94b-d852747e286d”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

fetch_user - API v2 Class - UUID 63ca11ff-08b7-40db-a4b7-d5cf38c18677 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“63ca11ff-08b7-40db-a4b7-d5cf38c18677”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

fetch_user - API v2 Class - UUID 143306ee-52e0-4ac1-9dad-df73bcef9f49 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“143306ee-52e0-4ac1-9dad-df73bcef9f49”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0.01 days ago

fetch_user - API v2 Class - UUID 8705dc5c-ab1d-4e1f-8328-1c83768562de - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“8705dc5c-ab1d-4e1f-8328-1c83768562de”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0.01 days ago

fetch_user - API v2 Class - UUID 39a84b11-1c15-4840-bf34-2e28a6746caa - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“39a84b11-1c15-4840-bf34-2e28a6746caa”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0.01 days ago

fetch_user - API v2 Class - UUID f3f9bf8c-e98e-446d-bc80-53c8540cbb24 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“f3f9bf8c-e98e-446d-bc80-53c8540cbb24”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0.01 days ago

fetch_user - API v2 Class - UUID 88e89139-e658-4211-994f-5573f7dc9d7b - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“88e89139-e658-4211-994f-5573f7dc9d7b”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

fetch_user - API v2 Class - UUID 8035d346-f307-4961-b148-398222948f14 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“8035d346-f307-4961-b148-398222948f14”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0.01 days ago

fetch_user - API v2 Class - UUID 1104e1f7-85e0-421a-bef1-ed769b71b95d - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“1104e1f7-85e0-421a-bef1-ed769b71b95d”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

fetch_user - API v2 Class - WP error message cURL error 28: Failed to connect to www.patreon.com port 443: Connection timed out

0.01 days ago

fetch_user - API v2 Class - UUID fba4f3ee-62ae-44ce-8b6b-8ed24028238f - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“fba4f3ee-62ae-44ce-8b6b-8ed24028238f”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

Its not blocked as in not authorized. Your site may have lost connection to Patreon. You can try out the steps outlined in the below guide to force refreshing your connection and check if this solves it:

Nope, that didn’t help. I did that about 24hrs ago, that is I reset the connection, removed all apps and used to setup wizard to get connected again. But that didn’t help at all that’s why I wrote here. I’m still getting the same errors spamming the log:

0 days ago

cURL error 28: Resolving timed out after 5000 milliseconds

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID 75208871-c65c-4132-bbbf-f7e25b87aec1 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“75208871-c65c-4132-bbbf-f7e25b87aec1”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID e5aba2a7-0c5d-4c13-ac76-77f2a21efd01 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“e5aba2a7-0c5d-4c13-ac76-77f2a21efd01”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID c91302a4-825d-446d-b70e-a5981e8c59a1 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“c91302a4-825d-446d-b70e-a5981e8c59a1”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID 8c2efc63-ed2b-4e67-a4fb-6e1fbe120a3f - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“8c2efc63-ed2b-4e67-a4fb-6e1fbe120a3f”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID 120e6fdb-cde4-4dfb-b627-0fddc30c4771 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“120e6fdb-cde4-4dfb-b627-0fddc30c4771”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID 43246e4b-1fde-467f-aaf0-a67c2b0d1169 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“43246e4b-1fde-467f-aaf0-a67c2b0d1169”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0 days ago

fetch_user - API v2 Class - UUID cabe0005-dd03-4a88-857f-1a445456cd18 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“cabe0005-dd03-4a88-857f-1a445456cd18”,“status”:“401”,“title”:“Unauthorized”}]}

0 days ago

fetch_user - API v2 Class - UUID f417b9ea-1df7-472d-ad86-67075bd46401 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“f417b9ea-1df7-472d-ad86-67075bd46401”,“status”:“401”,“title”:“Unauthorized”}]}

0.01 days ago

Response code: 401 Response :{“error”: “invalid_grant”}

0.01 days ago

fetch_user - API v2 Class - UUID fcbb818d-a941-4e1e-b47e-50f9285f4c42 - Response code: 401 Response :{“errors”:[{“code”:1,“code_name”:“Unauthorized”,“detail”:“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.”,“id”:“fcbb818d-a941-4e1e-b47e-50f9285f4c42”,“status”:“401”,“title”:“Unauthorized”}]}

Can you also try the debug package i prepared for those who have tier sync issues?

https://www.dropbox.com/s/es93f5oopdt86hj/patreon-connect.zip?dl=1

This package has some debug code to give info on what is happening. You can deactivate/delete your existing Patreon WordPress, upload and activate this package above.

Then when you visit ‘Patreon Settings’ -> ‘Site Health’, you will see some debug info printed out at the top of the page. Copy/paste the portion from the top until " Health check of your Patreon integration" title down below, and DM me via the forum. (or, mail to ozgur@c.patreon.com)

That debug info will help track the reason for this issue.