[FR] Allow @google-cloud/storage v9 — v8 emits MaxListenersExceededWarning on every download (teeny-request stream path)
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 62/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- google-cloud, node.js, typescript
Direzione di ricerca
Inizia leggendo i metadati del pacchetto che dichiarano @google-cloud/storage come dipendenza opzionale e controlla i test di compatibilità delle dipendenze esistenti. Estendi l’intervallo supportato per includere ^9.0.0, quindi esegui la suite di test pertinente e conferma che Storage 9 è accettato. Il lavoro è completato quando l’intervallo dichiarato e i test supportano la nuova versione principale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
[email protected] declares @google-cloud/storage as ^8.1.0 (optionalDependencies), so an Admin SDK app resolves Storage 8.4.0. On that version every File.createReadStream() / File.download() emits a MaxListenersExceededWarning:
(node:1) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [PassThrough]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:1) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [PassThrough]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(These are copied verbatim from our production logs. The error and close warnings arrive as a pair, within a millisecond of each other.)
It is not a leak (heap stays flat over hundreds of downloads). But Node prints it to stderr, outside any structured logger, and to anyone reading the logs it looks like a leak.
The cause, as far as we traced it (Storage 8.4.0, teeny-request 11.1.1, Node 24):
- teeny-request's stream mode pipes the response into its
requestStreamPassThrough (teeny-request/build/src/index.js,pipeline(responseStream, requestStream, ...)); - Storage's
createReadStreampipes that same raw response stream again, into itsthroughStream(@google-cloud/storage/build/cjs/src/file.js,pipeline(rawResponseStream, ...transformStreams, throughStream, onComplete)); - together with node-fetch's own pipeline, three
stream.pipelinecalls attach theirerrorandcloselisteners to the one PassThrough, which crosses the default limit of 10.
@google-cloud/[email protected] (released 2026-11-12) no longer depends on teeny-request (it uses gaxios 8), which removes this code path. We have not yet confirmed that the warning is gone on Storage 9; we're inferring it from the dependency change. Admin SDK users can't take Storage 9 without an overrides entry outside the SDK's declared range.
Describe the solution you'd like
Widen the @google-cloud/storage range to allow ^9.0.0 (its engines is node >=22, the same as firebase-admin@14), once it passes your test suite.
Describe alternatives you've considered
npm overridesforcing Storage 9: it works around the warning, but it runs the app on a Storage major the SDK hasn't been tested against.emitter.setMaxListeners()/--no-warnings: these hide the symptom and also hide real listener leaks.
Additional context
- firebase-admin 14.5.0 / 14.5.1, @google-cloud/storage 8.4.0, teeny-request 11.1.1, Node.js 24.
- We've seen it both in production (Cloud Run, Node 24) and against the Firebase Storage emulator.
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 429
- Merge medio
- 4g 19h
- PR unite (30g)
- 14
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/firebase-admin-node
-
Server-side Remote Config: evaluate() throws SyntaxError when a custom signal regex condition uses RE2-only syntax such as (?i)Forse già presa @0z5a l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
firebase/firebase-admin-node#3320 ·
I maintainer di solito rispondono entro 2 giorni
-
getToken() replays a failed token refresh to later callers while a valid token is cachedForse già presa @lahirumaramba l’ha presa 11 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
firebase/firebase-admin-node#3234 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
Misleading error message for THIRD_PARTY_AUTH_ERROR: raw "OAuth 2 access token" text surfaced instead of the APNs-specific messageForse già presa @milcho0604 l’ha presa 97 giorni fa. Apertaapi: messaging
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
firebase/firebase-admin-node#3215 ·
I maintainer di solito rispondono entro 2 giorni
-
api: messaging
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
firebase/firebase-admin-node#3214 ·
I maintainer di solito rispondono entro 2 giorni
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'Forse di nuovo libera @jonathanedey l’ha presa 140 giorni fa e non c’è nessuna pull request aperta. Apertaapi: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 commento · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di firebase/firebase-admin-node
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug claude Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Domain / chatbot New
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Inist-CNRS/lodex#3861 ·
I maintainer di solito rispondono entro 1 giorno
-
area:agent-sdk area:docs documentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
anthropics/claude-code#110914 ·
-
area/cli platform/windows type/bug version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
anomalyco/opencode#64631 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno