[英]'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.