You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After starting the rails app, I can issue successful requests one after another. If I pause for a minute and then try again, I get a message as follows
irb(main):028:0> Stripe::PaymentMethod.list({customer: "cus_xxxxxxxxxxxxxxxx", type: "card"})
INFO Request to Stripe API api_version=2019-12-03 method=get num_retries=0 path=/v1/payment_methods
ERRO Request error elapsed=0.03208500000619097 error_message="closed stream" method=get path=/v1/payment_methods
This happens with any method
This doesn't happen with the plain stripe gem.
I have tried creating a new client for each request and that has the same issue
client = Stripe::StripeClient.new
payment_methods, resp = client.request do
Stripe::PaymentMethod.list({
customer: "cus_xxxxxxxxxxxx",
type: 'card',
limit: 100
}, $STRIPE_REQUEST_CREDENTIALS[:non_profit])
end
Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered:
Versions
stripe-rails: 1.10.1
stripe: 5.22.0
ruby 2.6.3
After starting the rails app, I can issue successful requests one after another. If I pause for a minute and then try again, I get a message as follows
This happens with any method
This doesn't happen with the plain stripe gem.
I have tried creating a new client for each request and that has the same issue
Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered: