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
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
Move from teeny-request to standard Fetch API #2356
api: storageIssues related to the googleapis/nodejs-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
Using this lib with Bun is crashing when uploading a file.
1 | (function (stream, autoAllocateChunkSize) {"use strict";
^
TypeError: undefined is not an object
at lazyLoadStream (:1:20)
at getReader (:1:20)
at readStreamIntoSink (:1:32)
at readableStreamIntoText (:1:20)
at /.../node_modules/teeny-request/build/src/index.js:223:8
at processTicksAndRejections (:55:76)
Describe the solution you'd like
Now than fetch is standard in Node/Bun/Deno/... I don't see teeny-request is needed as dep.
Describe alternatives you've considered
Overriding teeny-request by rexporting fetch locally, not ideal but at least it behave the same and the error goes away.
Thanks for opening an issue @iRyusa. We are currently still supporting Node 14+ which means we are unable to make the move to the NodeJS Fetch API that was added in Node 18. However, it is something we have in mind when we move to the appropriate minimum version.
A quick update, we are in the planning phases of moving away from teeny-request in favor of utilizing the auth client which by extension uses gaxios under the hood. The folks working on gaxios are definitely interested in moving that library away from node-fetch in the future once the minimum supported version moves to Node 18.
api: storageIssues related to the googleapis/nodejs-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Activity
ddelgrosso1 commentedon Nov 8, 2023
Thanks for opening an issue @iRyusa. We are currently still supporting Node 14+ which means we are unable to make the move to the NodeJS Fetch API that was added in Node 18. However, it is something we have in mind when we move to the appropriate minimum version.
ddelgrosso1 commentedon Mar 13, 2024
A quick update, we are in the planning phases of moving away from teeny-request in favor of utilizing the auth client which by extension uses gaxios under the hood. The folks working on gaxios are definitely interested in moving that library away from node-fetch in the future once the minimum supported version moves to Node 18.
iRyusa commentedon Mar 13, 2024
Really nice to hear 🙌
ddelgrosso1 commentedon Apr 22, 2024
Adding link for tracking / knowledge purposes googleapis/gaxios#618
danielduhh commentedon Aug 19, 2024
Closing this as it should be fixed in gaxios: googleapis/google-cloud-node#7717