-
Notifications
You must be signed in to change notification settings - Fork 850
Closed
Labels
Description
Describe the bug
I have a Cloudflare Workflow and one of the steps is to fetch data from Stripe. This worked fine through version 19.1, however on 19.2, the workflow step fails to complete in the usual 1-3 seconds.
Tracing the exact change that is causing the problem is challenging, but it could be:
- an un-awaited fetch response
- a fetch response that is never consumed
- possibly a conflict between bun / stripe / cloudflare workers / cloudflare workflows
To Reproduce
- fetch an checkout (running on a cloudflare workflow step)
let expandedCheckout = (await stripe.checkout.sessions.retrieve(
myCheckoutId,
{
expand: ["line_items", "line_items.data.price.product"],
}
))
return JSON.stringify(expandedCheckout);- run when depending on 19.1 and it works.
- run when depending on 19.2.1 / 19.3.0, and it fails
Expected behavior
The Cloudflare workflow step should complete without timeout.
OS
cloudflare
Node version
bun 1.3.1
Library version
stripe-node v19.2.0 / 19.3.0
API version
default via const stripe = new Stripe(STRIPE_API_KEY, {});
Additional context
After a number of tests, it appears that this issue was introduced in 19.2.1. When I force the package to 19.2.0, it works well. 19.2.1 it fails.
Notice that normally these complete in a couple seconds. however the tests when running 19.3 showed wall time of 10-30+ minutes.
No response