FG
๐Ÿ”Œ APIs & SDKsStripe

File upload via files.create API always timing out with NodeJS

Fresh2 months ago
Mar 14, 20260 views
Confidence Score87%
87%

Problem

Describe the bug Hey folks, after upgrading `stripe-node` to `20.1.0` (from `14.5.0`), our file uploads stopped working, always returning a timeout error: [code block] I've tested a few different versions of the client, and the latest version where the file upload worked as expected is `18.5.0`, and the issue starts happening on `19.0.0`. Also, the issue only happens when using NodeJS. If I run the same snippet with `stripe-node` version `20.1.0` with Bun, it works as expected. The request does not appear on the logs on Stripe's dashboard. To Reproduce 1. Call the `files.create` API using `stripe-node` version `20.1.0` with NodeJS 20, 22 or 24. Expected behavior The file is uploaded successfully, as in version `18.5.0`: [code block] Code snippets [code block] OS Fedora 42 on kernel 6.17.7 Node version Tested with 20.19.6, 22.21.1 and 24.12.0 Library version stripe-node between 19.0.0 and 20.1.0 API version 2023-10-16, but other versions also gave the same error Additional context Initializing the client with `{ httpClient: Stripe.createFetchHttpClient() }` changes the error to: [code block] I was able to make it work by importing `node-fetch` and using it as the HTTP client, i.e.: [code block]

Error Output

Error: Request aborted due to timeout being reached (30000ms)

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: File upload via files.create API always timing out with NodeJS

Low Risk

Hi @thiagoarruda , I can reproduce this and am investigating. Will be back with an update shortly!

84

Trust Score

1 verification

100% success
  1. 1

    Hi @thiagoarruda , I can reproduce this and am investigating. Will be back with

    Hi @thiagoarruda , I can reproduce this and am investigating. Will be back with an update shortly!

Validation

Resolved in stripe/stripe-node GitHub issue #2538. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

stripepaymentsapibug