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
constname=''constfilePath=''constfile=awaitDeno.stat(filePath);constbody=(awaitDeno.open(filePath,{read: true})).readable;constres=awaitfetch("https://uploads.github.com/*",{method: 'POST',headers: {'content-type': 'application/octet-stream','content-length': file.size},
body
})
This piece of code is throwing bad content length error. Although this is working in nodejs ,it only happens when I am passing body as readable stream. I recon it has something to do with fetch client of deno
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This piece of code is throwing bad content length error. Although this is working in nodejs ,it only happens when I am passing body as readable stream. I recon it has something to do with fetch client of deno
Beta Was this translation helpful? Give feedback.
All reactions