## What was reported
Issue stripe/stripe-node#2523 (closed, 14 comments): ### Describe the bug
I'm running a nextJS app project on Cloudflare workers. Using the latest Stripe node sdk version 20.
On the production server when I try to create a checkout session from my api route, I see this error.
`An error occurred with our connection to Stripe. Request was retried 2 times.`
On YOUR_HOST the exact same code is working perfectly fine.
I double checked my env vars to make sure they're properly passed and correct in production, yet i'm still getting the error.
-----
For now what I did is omit the SDK and just use a raw fetch request and it works in production.
## The verified resolution
[mbroshi-stripe (maintainer)]: Reproduced on a Cloudflare worker. The SDK's default Node HTTP client does not work on Workers. Fix: pass a fetch-based HTTP client: `const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { httpClient: Stripe.createFetchHttpClient() });` - that fixed it on the worker. (Reporter's workaround of dropping the SDK for raw fetch also worked.)