firebase / firebase/firebase-ios-sdk
Quota exceeded is never received as an error in setData function
- Dominant language
- C++
- Stars
- 6.7k
- Forks
- 1.8k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 72
Description
### Description
My project is currently having problems about quota exceeded, but the problem is that the closing code of the setData function is never responding with an error or succes or something to know that the problem is happening.
I just can notice this problem because on console shows a print from the SDK indicating Stream error: 'Resource exhausted: Quota exceeded.'
But there's no a way to catch the error or exception, this causes many problems because theres no option to react when something like this is happening.
### Reproducing the issue
1. Having a project with write exceeded quote
2. Excecute the setData function
3. Wait for any response from the sdk.
### Firebase SDK Version
10.16.0
### Xcode Version
14.3.1
### Installation Method
CocoaPods
### Firebase Product(s)
Firestore
### Targeted Platforms
iOS
### Relevant Log Output
```shell
10.16.0 - [FirebaseFirestore][I-FST000001] WriteStream (7fa1337e5598) Stream error: 'Resource exhausted: Quota exceeded.'
```
### If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
```json
Replace this line with the contents of your Package.resolved.
```
### If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
```yml
Replace this line with the contents of your Podfile.lock!
```
Contributor guide
Assessment
This issue has not been assessed yet.