[Firestore] Cannot set properties of undefined (setting 'fromParams')
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- express, node.js, typescript
调研方向
跟踪信息指向 node_modules/@google-cloud/firestore/build/src/index.js 中的 ClientPool.clientFactory,报告则将 Firestore 问题指向 nodejs-firestore 仓库。首先确认 collection().get() 示例是否能在那里重现故障;由于没有指定 firebase-admin-node 的源文件或测试,归属和 definition of done 仍未确定。
由索引模型根据 Issue 内容生成。
描述
[READ] Step 1: Are you in the right place?
Cloud Firestore support is provided by the @google-cloud/firestore library. Therefore the easiest and most efficient way to get Firestore issues resolved is by directly reporting them at the nodejs-firestore GitHub repo.
If you still think the problem is related to the code in this repository, then read on.
- For issues or feature requests related to the code in this repository
file a Github issue. - For general technical questions, post a question on StackOverflow
with the firebase tag. - For general Firebase discussion, use the firebase-talk
google group. - For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Operating System version: macOs Sonoma 14.2.1
- Firebase SDK version: 11.8.0
- Firebase Product: Firestore
- Node.js version: 20.0.0
- NPM version: 9.6.4
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
You can enable logging for Firestore by including the following line in your code:
admin.firestore.setLogFunction(console.log);
This will print Firestore logs to the console.
Relevant Code:
This is the trace i got by following the past point
Firestore (6.8.0) 2024-03-18T15:41:13.218Z QLnjt [Firestore._retry]: Retrying request that failed with error: TypeError: Cannot set properties of undefined (setting 'fromParams')
at ClientPool.clientFactory (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/index.js:486:42)
at ClientPool.acquire (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/pool.js:103:35)
at ClientPool.run (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/pool.js:217:29)
at MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/index.js:1391:30
at Firestore._retry (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/index.js:1251:30)
at DocumentReader.fetchDocuments (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/document-reader.js:89:28)
at DocumentReader.get (MYPATH/api/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/document-reader.js:52:9)
Basically there's a function that runs before starting my express.js app, that function just calls
myFunction().then(() => {
app.listen(() => console.log('Server running on port 3000'))
})
The function calls
fs.collection('myCollection').get()
where fs is exported from other file that exports like this
import admin from 'firebase-admin'
export const fs = admin.firestore()
- 主要语言
- TypeScript
- 星标
- 1.7k
- 派生
- 419
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 16
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 条评论 · 已指派 1 人 ·
-
api: messaging
难度 3/5 1-2 天 新手友好度 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
难度 5/5 一周以上 新手友好度 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 条评论 · 已指派 1 人 ·
查看 firebase/firebase-admin-node 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100