Realtime Database - indefinite hold after calling get()
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript
- 领域
- databases
调研方向
使用 admin.initializeApp()、database().ref().get() 和 goOffline() 重现所提供的 Admin Node.js 脚本,然后检查 Admin SDK 使用的 Realtime Database 路径。完成的标准是进程在读取和最终日志之后退出,而不需要额外的变通方案;payload 不命名任何 repository 文件或测试。
由索引模型根据 Issue 内容生成。
描述
Operating System
Node JS 16
Browser Version
Admin SDK
Firebase SDK Version
11.7.0 (and also 12.2.0)
Firebase SDK Product:
Database
Describe your project's tooling
Admin Node JS SDK
Describe the problem
Hi guys,
I built a simple script in Typescript that reads from the Database and prints the result. Whenever I do that, the newly created process does not close.
I'm not sure if this is an intended behaviour
I also added the admin.database().goOffline(); as mentioned in https://github.com/firebase/firebase-js-sdk/issues/6932#issuecomment-1385331994 but didn't work.
Steps and code to reproduce issue
Run the following js code
admin.initializeApp();
_test();
async function _test() {
const ref = await admin
.database()
.ref('YOUR_REFERENCE')
.get();
const start_data = ref.val();
console.log(start_data);
admin.database().goOffline();
console.log('end');
}
You'll see that even though the console prints 'end', the program doesn't actually stop.
If you simply run
admin.initializeApp();
_test();
async function _test() {
console.log('end');
}
the program stops as intended
- 主要语言
- TypeScript
- 星标
- 1.8k
- 派生
- 422
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 18
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-node 的其他 Issue
-
Password policy violation is reported as `auth/internal-error` instead of a specific error code可能已有人在做 @lahirumaramba 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
firebase/firebase-admin-node#3265 · 已指派 1 人 ·
维护者通常 1 天内回复
-
getToken() replays a failed token refresh to later callers while a valid token is cached可能已有人在做 @GUMBOKIM 于 56 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
firebase/firebase-admin-node#3234 ·
维护者通常 1 天内回复
-
[email protected] stable dependency tree fails npm audit via Storage uuid and Firestore google-gax可能重新可做 @lahirumaramba 于 32 天前认领,目前没有进行中的 PR。 未关闭
firebase/firebase-admin-node#3221 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Misleading error message for THIRD_PARTY_AUTH_ERROR: raw "OAuth 2 access token" text surfaced instead of the APNs-specific message可能已有人在做 @milcho0604 于 59 天前认领。 未关闭api: messaging
难度 3/5 1-2 天 新手友好度 70/100
firebase/firebase-admin-node#3215 ·
维护者通常 1 天内回复
-
api: messaging
难度 5/5 一周以上 新手友好度 28/100
firebase/firebase-admin-node#3214 ·
维护者通常 1 天内回复
查看 firebase/firebase-admin-node 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
NousResearch/hermes-agent#136483 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
[Bug]: Web chat input doesn't regain focus after a reply finishes可能已有人在做 @GaijinSystems 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
zeroclaw-labs/zeroclaw#11658 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
babylonlabs-io/babylon-toolkit#2711 ·
维护者通常 1 天内回复