[英]'RestConnection Commit failed with error' when trying to write to firestore
[英]Does Firestore through error or retries when write failed due to the 1 write per sec per document limitation?
我在 Ionic 5 中的项目。例如,如果多个用户使用以下值更新 Firestore 文档。
try{
await this.afs.doc('path').update({ count: firestore.FieldValue.Increment(1)});
}catch (error) {
...
}
如果由于 Firestore 限制每个文档每秒写入 1 次而导致用户写入失败,代码是否能够将其catch
为错误。 另外,Firestore 会重试失败的写入吗?
是的,它会生成一个您可以捕获的错误。 不,不会重试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.