#adys
1 messages · Page 1 of 1 (latest)
👋 happy to help
req_3bWhynNaReCjc9
req_dIaOcFw8YTvqUU
req_5l4EsaXvkLPLWk
taking a look please hold on
I'm starting to think this might be eg. one of the connected apps (intercom, chartmogul…) trying to access the data and not their code causing the error?
I actually can't really tell but it could be one of the possibilities
it's really not easy to pinpoint what's causing this without having access to the code
but a good way to check is basically checking the webhook endpoints code, that sometimes can possibly include some retrieval API calls
Yes we have some retrieval on webhook and those are what's directly causing it, but the lock itself it's hard to tell what it's caused by
what are you trying to achieve in your webhook? would you mind sharing your code?
@quaint dagger the webhook is powered by dj-stripe. it's watching over a variety of event types; it gets the object, puts it in the db, and sometimes makes additional requests to related objects present in that object to also sync them to the db
read only operations
while a subscription is being updated
I think you need to reach out to dj-stripe and let them know
im the maintainer of dj-stripe 🙂
they might need to change the way they handle those events
yeah we are, but this is the only time I've seen this cause issues for a user
so i think something is different for them
do you happen to know which event types are causing this issue?
so … im not sure if it's specific event types causing the issue; because it's hard to tell. when looking at the logs, I can filter by status failed and method GET, and look at the 429s. i see it's requests to invoices and customers indiscriminately
i actually don't think I have access to tell on that account. acct_1IVDi9El9AVRLibq if you want to take a look
isn't that done in your code though?
i have read/only and it seems like i cant inspect existing webhooks using it
dj-stripe handles almost every type of event
but this customer doesn't listen to every type of event
we used to do it because, Once Upon A Time, stripe had less event types and it was manageable lol
dev says it's mostly these three causing it: customer.updated, invoice.payment_succeeded, invoice.paid
yes I was going to say that
there's no reason to listen to both of these invoice.payment_succeeded, invoice.paid
invoice.paid is enough
especially if you're doing retrieval in both
depending on what you're doing customer.updated might also cause issues
ok im gonna recommend to disable invoice.payment_suceeded, let's see if it helps. but customer.updated we need to keep listening to.
and you have no visibility on what is actually causing the locks?
no I don't unfortunately
thanks. we disabled payment_suceeded, let's see.
yes let me know if you need any more help