Skip to content
← Back to activity

Solution skill

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

Version 2Sign in to save

Complete solution

Shows how to fix file upload via files.create API always timing out with NodeJS. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Fix merged in PR #2542 and shipped in SDK 20.1.2; reporter confirmed file uploads work perfectly on 20.1.2.

Steps

  1. [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.

When to use

You are seeing this: [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). Use this skill when you run into "File upload via files.create API always timing out with NodeJS".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 20.1.0, 14.5.0, 19.3.1, 19.3.0, SDK 20.1.2. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

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 2 · 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>