#mebezac_docs

1 messages ยท Page 1 of 1 (latest)

strong irisBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1324456716645175399

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

old pecan
#

Here's the not shortened version:

Stripe.api_key = YOUR_KEY
Stripe.api_version = YOUR_VERSION
Stripe.log_level = 'debug'
Stripe.open_timeout = 0.01

Stripe::PaymentIntent.retrieve('pi_3QUbknF2v1Yns8Jb0n84xrPS')
# INFO Request to Stripe API api_version=2024-06-20 method=get num_retries=0 path=/v1/payment_intents/pi_3QUbknF2v1Yns8Jb0n84xrPS
# DEBU Request details query= process_id=1 thread_object_id=8400 log_timestamp=93314.979633254
# ERRO Request error elapsed=0.0117530230054399 error_message="Failed to open TCP connection to api.stripe.com:443 (execution expired)" method=get path=/v1/payment_intents/pi_3QUbknF2v1Yns8Jb0n84xrP

c = Stripe::StripeClient.new(YOUR_KEY, stripe_version: YOUR_VERSION)
c.v1.payment_intents.retrieve('pi_3QUbknF2v1Yns8Jb0n84xrPS')
# DEBU ConnectionManager starting request method_name=GET path="/v1/payment_intents/pi_3QUbknF2v1Yns8Jb0n84xrPS?" process_id=1 thread_object_id=8400 connection_manager_object_id=321040 connection_object_id=321060 log_timestamp=93423.4299955
# DEBU ConnectionManager request complete method_name=GET path="/v1/payment_intents/pi_3QUbknF2v1Yns8Jb0n84xrPS?" process_id=1 thread_object_id=8400 connection_manager_object_id=321040 connection_object_id=321060 response_object_id=321080 log_timestamp=93424.511355943
fiery willowBOT
old pecan
#

the open_timeout is a contrived example to show it's not working. One of the more important ones we actually want to configure is Stripe.enable_telemetry = false

pale lake
#

Hi there ๐Ÿ‘‹ I'm working on reviewing what you shared to try to understand what you're describing.

#

Hm, I'm admittedly a bit fuzzy on this.

You're saying that the open_timeout you set is respected when you use Stripe, but not when you create a StripeClient?

pale lake
#

And can you share what version of our SDK you're using currently for this testing?

#

I took a look at this with a teammate, and we aren't spotting anything that appears to be wrong with the way you're approaching this, and agree it looks like our documentation is not aligning with the behavior you're seeing. I would recommend opening an issue in our github repo for stripe-ruby so the team that maintains that library can take a closer look.
https://github.com/stripe/stripe-ruby/issues?q=is%3Aissue+is%3Aopen+

old pecan
#

I was using 13.3.0 I'll file an issue