remix: First parameter has member 'readable' that is not a ReadableStream

Hi there,

The Remix apps (mine and my customers’) have stopped working quite out of the blue.

Remix version: 2.0.1 to 2.1.0 Node: v18

This cannot be reproduced locally.

See the below error:

Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: First parameter has member 'readable' that is not a ReadableStream.","reason":{"errorType":"TypeError","errorMessage":"First parameter has member 'readable' that is not a ReadableStream.","stack":["TypeError: First parameter has member 'readable' that is not a ReadableStream.","    at assertReadableStream (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:362:19)","    at convertReadableWritablePair (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:3524:9)","    at ReadableStream.pipeThrough (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:3608:29)","    at fetchFinale (node:internal/deps/undici/undici:11082:56)","    at mainFetch (node:internal/deps/undici/undici:10974:9)","    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: First parameter has member 'readable' that is not a ReadableStream.","    at process.<anonymous> (file:///var/runtime/index.mjs:1276:17)","    at process.emit (node:events:529:35)","    at process.emit (node:domain:489:12)","    at emit (node:internal/process/promises:149:20)","    at processPromiseRejections (node:internal/process/promises:283:27)","    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"]}
Unknown application error occurred
Runtime.Unknown

Happy to provide any more details that could help debug this, I am not sure right now what could be of help!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 5
  • Comments: 18 (4 by maintainers)

Most upvoted comments

Sorry about that folks. This should be fixed now. You will need to re-deploy your project.

I met the same issue again when deploy my project to Vercel:

Unhandled Promise Rejection {“errorType”:“Runtime.UnhandledPromiseRejection”,“errorMessage”:“TypeError: First parameter has member ‘readable’ that is not a ReadableStream.”,“reason”:{“errorType”:“TypeError”,“errorMessage”:“First parameter has member ‘readable’ that is not a ReadableStream.”,“stack”:[“TypeError: First parameter has member ‘readable’ that is not a ReadableStream.”," at assertReadableStream (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:466:19)“,” at convertReadableWritablePair (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:4038:9)“,” at ReadableStream.pipeThrough (/var/task/node_modules/web-streams-polyfill/dist/ponyfill.js:4122:29)“,” at fetchFinale (node:internal/deps/undici/undici:9905:56)“,” at mainFetch (node:internal/deps/undici/undici:9794:9)“,” at process.processTicksAndRejections (node:internal/process/task_queues:95:5)“]},“promise”:{},“stack”:[“Runtime.UnhandledPromiseRejection: TypeError: First parameter has member ‘readable’ that is not a ReadableStream.”,” at process.<anonymous> (file:///var/runtime/index.mjs:1276:17)“,” at process.emit (node:events:529:35)“,” at emit (node:internal/process/promises:149:20)“,” at processPromiseRejections (node:internal/process/promises:283:27)“,” at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"]}

Thanks for the repro. We are investigating.

@baberMatt Could you create a standalone repo so that we can take a closer look?