fs.createReadStream
to fetch upload is string instead of binary in Deno
#21454
Labels
needs investigation
requires further investigation before determining if it is an issue or not
node API
Related to various "node:*" modules APIs
node compat
I have a Node module that I'm trying to make compatible with Deno.
In this module I'm passing a stream from
fs.createReadStream
to the body of a fetch POST request.The API I'm submitting this file to only can only process audio and video files.
In Node it works fine, but in Deno, the API gives this error "File does not appear to contain audio. File type is text/plain (ASCII text, with no line terminators)"
If this is not enough information, I'll try to create a minimal repro.
How can I make sure the behavior is the same on Node as Deno?
deno 1.38.4 (release, aarch64-apple-darwin)
v8 12.0.267.1
typescript 5.2.2
The text was updated successfully, but these errors were encountered: