#alexander_farkas
1 messages · Page 1 of 1 (latest)
Stripe library itself reports it as APIConnectionError Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com.
Hi 👋 hm, offhand this sounds like it could be an intermittent connection issue of some sort.
Have you set up automatic retries to try to help combat this?
https://github.com/stripe/stripe-python?tab=readme-ov-file#configuring-automatic-retries
I haven't - I will definitely try it, but what I found strange is should_retry is True in the stacktrace
Here
I haven't dug in that far, but my suspicion is that is an indication to our retry logic that the request should be tried again (using our idempotent request approach so there isn't risk of duplicate actions being performed) if automatic retries are enabled.
Oh, ok, thank you!
Our CoreDNS might also be a problem, but we haven't found anything in the logs proving it.
I will try adding max retries and see if problem goes away.
Could you suggest where I may find the pattern of retries? To make sure request time is reasonable
I don't think there is a great way to specifically see retried requests, but let me poke around a bit.
I'm not finding anything in the dashboard for that, and that likely wouldn't be reliable anyway in cases where the request didn't make it to us so it isn't logged.
My best guess, if that's logged anywhere, is that it would be through the logging available through our library:
https://github.com/stripe/stripe-python?tab=readme-ov-file#logging
but I'm not certain that's going to show what you're hoping.
Ok, thank you very much for your time!
Have a great day