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
.text() or .json() works on a normal development environment (bun i), but does not (sometimes) on my production environment (without ky devDependencies, bun i -p, while simple fetch() does).
Response
Empty string when doing .json() or .text()
Posibly related to #490, but instead of request, response.
The text was updated successfully, but these errors were encountered:
I have this problem too. About 1 in 6 requests returns an empty response body in Bun (no problem in Node.js).
If I add the following line in the function_() function (line 19), I always get a response body with the cloned request, even when the main request response doesn't return a body.
letresponse=awaitky._fetch();// This prints an empty body in about 1 in 6 requestsresponse.clone().blob().then(blob=>blob.text()).then(str=>console.log("Blob for main request:",str));// This always prints a bodyfetch(this.request.clone(),{}).then(res=>res.blob()).then(blob=>blob.text()).then(str=>console.log("Blob for cloned request:",str));
Bun 1.0.29 (a146856d)
.text() or .json() works on a normal development environment (
bun i
), but does not (sometimes) on my production environment (without ky devDependencies,bun i -p
, while simple fetch() does).Response
Empty string when doing .json() or .text()
Posibly related to #490, but instead of request, response.
The text was updated successfully, but these errors were encountered: