Been having this issue on and off and I’m all out of ideas what to do. This error slows down my website by more than a second. It’s a lot when by default, with plugin deleted, it loads in 500-700ms. The only thing I use it for at the moment is removing ads for logged in Patrons. Here’s Query Monitor logs:
Here’s how the health check looks like (there’s a lot more, but would be too long):
These are the last 50 connection issues encountered by your site when contacting Patreon API. These are here for general info on health of the connection of your WP site to Patreon API. They only constitute an error if there are a lot of recent ones. Healthiest integrations should have a number of them (up to 50) in the long run.
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
**0 days ago**
fetch_user - API v2 Class - UUID cee9b8c0-bcc2-5db0-97c9-f5e96554b2f8 - 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":"cee9b8c0-bcc2-5db0-97c9-f5e96554b2f8","status":"401","title":"Unauthorized"}]}
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
**0 days ago**
fetch_user - API v2 Class - UUID e44d043c-d969-52ca-8878-4dc3ddccf86b - 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":"e44d043c-d969-52ca-8878-4dc3ddccf86b","status":"401","title":"Unauthorized"}]}
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
**0 days ago**
fetch_user - API v2 Class - UUID 325a233d-192a-52f6-9224-099c74bd05f8 - 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":"325a233d-192a-52f6-9224-099c74bd05f8","status":"401","title":"Unauthorized"}]}
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
**0 days ago**
fetch_user - API v2 Class - UUID 3a7c2a83-fdc4-54ef-a3bc-89b1bd69dfeb - 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":"3a7c2a83-fdc4-54ef-a3bc-89b1bd69dfeb","status":"401","title":"Unauthorized"}]}
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
**0 days ago**
fetch_user - API v2 Class - UUID 21365ed0-8809-5e5a-86d2-aed43486e87c - 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":"21365ed0-8809-5e5a-86d2-aed43486e87c","status":"401","title":"Unauthorized"}]}
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
**0 days ago**
fetch_user - API v2 Class - UUID b7f6c12e-0900-5e9e-9e02-75fc101a2d99 - 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":"b7f6c12e-0900-5e9e-9e02-75fc101a2d99","status":"401","title":"Unauthorized"}]}
**0 days ago**
Response code: 401 Response :{"error": "invalid_grant"}
The strange thing is, this error is happening on my production website, while on my development website it’s calling this API 200 OK on each page load. This plugin been giving me the most trouble and performance issues in many years of working on WordPress.
I tried:
Also tried deactivating and deleting plugin, making sure plugin folder is deleted, and reinstalling, doing all the above again.
Tried to disable all plugins except Patreon and my own essential plugins that do not modify requests in any way, basically matching the plugin stack with my development website.
Tried deleting plugin, deleting all options starting with “patreon” from wp_options
database table, deleting all rewrite rules that had anything to do with Patreon from rewrite_rules
in wp_options
and reinstalling plugin.
Environment:
WP 5.9.1 with PHP 8.0.15
Patreon WordPress 1.8.2 with API v2