firebase / firebase/firebase-ios-sdk
RTDB write size limit error
- Dominant language
- C++
- Stars
- 6.7k
- Forks
- 1.8k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 75
Description
### Step 0: Are you in the right place?
* For issues or feature requests related to __the code in this repository__
file a Github issue.
* If this is a __feature request__ please use the Feature Request template.
* For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)
with the `firebase` tag.
* For general (non-iOS) Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)
google group.
* For backend issues, console issues, and other non-SDK help that does not fall under one
of the above categories, reach out to
[Firebase Support](https://firebase.google.com/support/).
* Once you've read this section and determined that your issue is appropriate for
this repository, please delete this section.
### [REQUIRED] Step 1: Describe your environment
* Xcode version: 11.6
* Firebase SDK version: 6.28.1
* Firebase Component: Database
* Component version: 6.28.1
* Installation method: `Carthage`
### [REQUIRED] Step 2: Describe the problem
#### Steps to reproduce:
If you call `setValue` on a `DatabaseReference` with a value that is larger than the allowed write limit of 16mb (my case was 19mb), the supplied completion handler is never called. Furthermore any subsequent updates from the client are never synced to the server.
I have not created a project to demostrate the issue as I think that it is fairly easy to reproduce.
If you wish, I could create a reproduction.
#### Relevant Code:
```
let value =
ref.setValue(value, withCompletionBlock: { error, _ in
print("Never reached")
})
// sleep for a while
otherRef.setValue(smallValue)
// smallValue never reaches the server
```
Contributor guide
Assessment
This issue has not been assessed yet.