Skip to content

Conversation

@pieh
Copy link
Contributor

@pieh pieh commented Dec 17, 2025

🎉 Thanks for submitting a pull request! 🎉

Summary

Ref: https://netlify.slack.com/archives/C03ETTLQ9BP/p1765962467406159

Fixes #<replace_with_issue_number>


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@github-actions
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

Comment on lines +266 to +268
throw new Error('Simulated upload error with cause', {
cause: new Error('Outer internal error', { cause: new Error('Nested internal error') }),
})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is somewhat simulating fetch error that often will have cause - for example like so:

TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11118:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: Error: connect ECONNREFUSED 127.0.0.1:1337 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 1337 } } 

As fetch failed is just category of error that can have multiple underlying causes

@pieh pieh marked this pull request as ready for review December 17, 2025 11:37
@pieh pieh requested a review from a team as a code owner December 17, 2025 11:37
@pieh pieh enabled auto-merge (squash) December 17, 2025 11:45
@pieh pieh merged commit 00d4501 into main Dec 17, 2025
54 of 55 checks passed
@pieh pieh deleted the fix/blobs-upload-fetch-failed-underlying-error branch December 17, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment