Infinite loop authorising
-
Hi,
We are trying to configure the Feedback Company plugin on one of our webshops, however we seem to be stuck in an infinite loop when authorising the plugin with the Feedback Company API. Below is a snapshot of the request that is being looped thousands of times every couple of seconds. What I can see from the code is that the plugin tries to create an access token when the current acces token gives a 401 Unauthorized error. There is some fallback code in the plugin that checks timings, but that doesn’t seem to be working.
We performed the following steps to reproduce this:
1. Install and activate the plugin in WordPress
2. Add the client’s ClientID and Client Secret and press save.
After that, the infinite loop starts and pulls the whole site down with it. Is this perhaps something you’ve seen before or can help us with?
Some more technical specs:
PHP version: 8.2.23
WordPress version: 6.6.2
Woocommerce version: 9.2.3Thanks in advance!
2024-09-18 11:58:16
https://www.feedbackcompany.com/api/v2/oauth2/token?client_id=<clientID>&client_secret=<clientSecret>&grant_type=authorization_code
Call: GET []
Response: {"error":false,"access_token":"<accessToken>","expires_on":"November, 18 2024 09:58:16 +0000"}
2024-09-18 11:58:16
https://www.feedbackcompany.com/api/v2/shop
Call: GET {"Authorization":"Bearer <accessToken>"}
Response: {"data":[],"message":"401 Unauthorized","success":false}
2024-09-18 11:58:16
https://www.feedbackcompany.com/api/v2/oauth2/token?client_id=<clientID>&client_secret=<clientSecret>&grant_type=authorization_code
Call: GET []
Response: {"error":false,"access_token":"<accessToken>","expires_on":"November, 18 2024 09:58:16 +0000"}
2024-09-18 11:58:16
https://www.feedbackcompany.com/api/v2/shop
Call: GET {"Authorization":"Bearer <accessToken>"}
Response: {"data":[],"message":"401 Unauthorized","success":false}
- You must be logged in to reply to this topic.