You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Uint8Array created under certain conditions from the ReadStream of a file is passed to ClientRequest.end for http communication
The value received on the server side will be a different byte string.
This issue is derived from the following URL #24551
The following is how the reproduced code is executed.
Normally, all hash values should be the same ( "749d27efcde2194c9b0d6692bad5880740f90e70a5e4200b3e0ace34744b3102 " ), but the hash values on the server side of the deno are different.
This problem does not occur with node.
Deno
> cd 1-deno
> deno --version
deno 1.45.1 (release, x86_64-pc-windows-msvc)
v8 12.7.224.12
typescript 5.5.2
> deno run -A index.ts
start program
runtime is "Deno"
hash 749d27efcde2194c9b0d6692bad5880740f90e70a5e4200b3e0ace34744b3102 vs 6fdb427a9655231378d35541c14ded99a0c7fc7ccfd8b8d33db4312bc73e6feb
all success
node.js
> cd 2-node
> node --version
v22.4.1
> npm i && npm run start
start program
runtime is "Node"
hash 749d27efcde2194c9b0d6692bad5880740f90e70a5e4200b3e0ace34744b3102 vs 749d27efcde2194c9b0d6692bad5880740f90e70a5e4200b3e0ace34744b3102
all success
The reproduced code is as follows The code is the same as the one in the repository.
Executing this reproduced code will result in communication to httpbin.org.
There is a complete reproduction code.
https://github.com/fushihara/deno-aws-sdk-issue
deno version is
deno 1.45.1
When a Uint8Array created under certain conditions from the ReadStream of a file is passed to ClientRequest.end for http communication
The value received on the server side will be a different byte string.
This issue is derived from the following URL
#24551
The following is how the reproduced code is executed.
Normally, all hash values should be the same ( "749d27efcde2194c9b0d6692bad5880740f90e70a5e4200b3e0ace34744b3102 " ), but the hash values on the server side of the deno are different.
This problem does not occur with node.
Deno
node.js
The reproduced code is as follows The code is the same as the one in the repository.
Executing this reproduced code will result in communication to httpbin.org.
Uint8Array operations are extracted from the following library.
This code works fine in node.js, so I determined that it was a deno issue.
https://github.com/aws/aws-sdk-js-v3/blob/b963a513006b289a3db0b4e6406f92f5e09a29c2/lib/lib-storage/src/Upload.ts#L326
The text was updated successfully, but these errors were encountered: