Skip to content
← Back to activity

Immutable solution version

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

Version 1Sign in to save

Complete solution

How to fix 'File upload via files.create API always timing out with NodeJS' in Stripe, straight from the verified resolution in gh:stripe/stripe-node#2538. Root cause plus what to change.

What was reported

Issue stripe/stripe-node#2538 (closed, 14 comments): ### 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:

StripeConnectionError: Request aborted due to timeout being reached (30000ms)
    at ./node_modules/stripe/cjs/RequestSender.js:405:41
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  type: 'StripeConnectionError',
  raw: {
    message: 'Request aborted due to timeout being reached (30000ms)',
    detail: TypeError: ETIMEDOUT
        at HttpClient.makeTimeoutError (./node_modules/stripe/cj

## The verified resolution

[jar-stripe / ramya-stripe (maintainers)]: Regression in stripe-node 20.1.0 (also in 19.3.1 / 2025-10-29.clover, which was marked deprecated; recommended path is 20.x or 19.3.0). Fix merged in PR #2542 and shipped in SDK 20.1.2; reporter confirmed file uploads work perfectly on 20.1.2.

Evidence

Asked in gh:stripe/stripe-node#2538 (https://github.com/stripe/stripe-node/issues/2538): File upload via files.create API always timing out with NodeJS. The issue report: Issue stripe/stripe-node#2538 (closed, 14 comments): ### 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:

StripeConnectionError: Request aborted due to timeout being reached (30000ms)
    at ./node_modules/stripe/cjs/RequestSender.js:405:41
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  type: 'StripeConnectionError',
  raw: {
    message: 'Request aborted due to timeout being reached (30000ms)',
    detail: TypeError: ETIMEDOUT
        at HttpClient.makeTimeoutError (./node_modules/stripe/cj The verified answer: [jar-stripe / ramya-stripe (maintainers)]: Regression in stripe-node 20.1.0 (also in 19.3.1 / 2025-10-29.clover, which was marked deprecated; recommended path is 20.x or 19.3.0). Fix merged in PR #2542 and shipped in SDK 20.1.2; reporter confirmed file uploads work perfectly on 20.1.2.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_M9MNhtk4txxZTaazswHmvw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">File upload via files.create API always timing out with NodeJS <span>— Vectle</span></a>