#Kike Copeiro

1 messages · Page 1 of 1 (latest)

lament lavaBOT
turbid coyote
#

Hi there, how can I help?

dawn parcel
#

The scenario is as follows: In Stripe the renewal payment is made correctly, but nevertheless the communication does not reach our Restrict Content Pro plugin correctly. This causes RCP to "not know" and the subscription expires.

Reviewing the events of the webhook I have seen that for the events charge.succeeded and payment_intent.succeeded a Response 200 Ok appears, but also the following message:

"PHP exception: This object cannot be accessed right now because another API request or Stripe process is currently accessing it. If you see this error intermittently, retry the request. If you see this error frequently and are making multiple concurrent requests to a single object, make your requests serially or at a lower rate."

Investigating more about the logs, I get the error 429 lock_timeout

I have checked that it had many applications that we do NOT currently use. I have deleted it.

Could the origin of this problem be caused by trying to send the information to all those applications?
If not, how can I make my requests serially or at a lower rate?

turbid coyote
#

Hi there, I can only support if you have a direct integration with Stripe. If you have questions related to a 3rd-party plugin, I'd suggest you to reach out to the plugin developer directly.

lament lavaBOT
dawn parcel
#

I agree @turbid coyote , but in this case, I'm detecting that the source of the problem is occurring in Stripe, therefore I don't think the solution is found "outside" or in 3rd-party plugins, don't think?

#

question is: How could I avoid error 429 lock_timeout?

turbid coyote
#

Are you using a Restrict Content Pro plugin?

dawn parcel
#

yes

#

The thing is, it doesn't always fail me. it will fail in approximately 20% of the subscriptions that need to be renewed

turbid coyote
#

Yup, so your plugin should handle the 429 errors.

dawn parcel
#

and, how can I make my requests serially or at a lower rate from Stripe side?

turbid coyote
#

Since you are using a plugin, it's your plugin making the API request on behalf of you. I'd suggest you to reach out to the plugin developer and share them the doc link that I sent earlier.

dawn parcel
#

and ask them to modify his plugin?

#

@turbid coyote Am I the first person to report this error in #dev-help with the RCP plugin involved?

winged apex
#

I personally have never seen any other questions about that plugin here no

#

But as my colleague states, we don't control their integration. They build and maintain that and it is up to the plugin to gracefully handle those errors

dawn parcel
#

And don't you think that the problem could be that from Stripe we were sending the json to several platforms at the same time?

#

What I have done is delete the one from Thrivecard and the two from Clickfunnels because we don't need them...