[FR] Allow @google-cloud/storage v9 — v8 emits MaxListenersExceededWarning on every download (teeny-request stream path)
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- google-cloud, node.js, typescript
Hướng nghiên cứu
Bắt đầu bằng cách đọc siêu dữ liệu gói khai báo @google-cloud/storage là phần phụ thuộc tùy chọn và kiểm tra các bài kiểm tra tương thích phần phụ thuộc hiện có. Mở rộng phạm vi được hỗ trợ để bao gồm ^9.0.0, sau đó chạy bộ kiểm tra liên quan và xác nhận Storage 9 được chấp nhận. Công việc hoàn tất khi phạm vi đã khai báo và các bài kiểm tra hỗ trợ phiên bản chính mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.8k
- Fork
- 429
- Merge trung bình
- 4 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-admin-node
-
Server-side Remote Config: evaluate() throws SyntaxError when a custom signal regex condition uses RE2-only syntax such as (?i)Có thể đã có người làm @0z5a đã nhận 2 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
firebase/firebase-admin-node#3320 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
getToken() replays a failed token refresh to later callers while a valid token is cachedCó thể đã có người làm @lahirumaramba đã nhận 11 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
firebase/firebase-admin-node#3234 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Misleading error message for THIRD_PARTY_AUTH_ERROR: raw "OAuth 2 access token" text surfaced instead of the APNs-specific messageCó thể đã có người làm @milcho0604 đã nhận 97 ngày trước. Đang mởapi: messaging
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
firebase/firebase-admin-node#3215 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
api: messaging
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
firebase/firebase-admin-node#3214 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'Có thể làm lại được @jonathanedey đã nhận 140 ngày trước và không có pull request nào đang mở. Đang mởapi: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của firebase/firebase-admin-node
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ai-driven-qa bug claude Cosmetic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Domain / chatbot New
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Inist-CNRS/lodex#3861 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:agent-sdk area:docs documentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
anthropics/claude-code#110914 ·
-
area/cli platform/windows type/bug version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
anomalyco/opencode#64631 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày