firebase / firebase/firebase-js-sdk
Firestore lite: RestConnection RPC [FirebaseError: Request failed with error: undefined]
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
### [REQUIRED] Describe your environment
* Operating System version: Ubuntu 18.04 (Cloud Functions Node 16)
* Browser version: N/A (Running on Cloud Functions with Node 16)
* Firebase SDK version: 9.19.1
* Firebase Product: firestore/lite
### [REQUIRED] Describe the problem
We recently just tried to switch our production application to use `firestore/lite` instead of the complete Firestore SDK in our Cloud Functions.
Now, every once in a while, Firestore throws errors in this form:
```
@firebase/firestore: Firestore (9.19.1_lite): RestConnection RPC 'BatchGetDocuments' 0x11d7c49f failed with error: [FirebaseError: Request failed with error: undefined]
```
This can happen for read and for write operations, but very very rarely.
We never had such issues before switching to `firestore/lite`. The `undefined` error also makes it impossible to debug.
#### Steps to reproduce:
Use `firestore/lite` in Cloud Functions.
Contributor guide
Assessment
This issue has not been assessed yet.