Firestore交易无效 [英] Firestore Transactions do not work

查看:102
本文介绍了Firestore交易无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现一些问题线索,而且人们也无法完成交易,但是它甚至不提供解决方案

I found some issue thread with people also not being able to complete transactions, but it does not even provide solutions.

突然,我的<使用 transaction.get 交易崩溃 >。

Suddenly, my transactions crashes when using transaction.get.

runTransaction(
  (Transaction transaction) async {
    await transaction.get(documentReference); // "Timed out waiting for Task"
  }

PlatformException 并没有真正帮助我,因为它在 platform_channel ...

E/flutter (16297): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (16297): PlatformException(Error performing transaction, Timed out waiting for Task, null)
E/flutter (16297): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:547:7)
E/flutter (16297): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:279:18)
E/flutter (16297): <asynchronous suspension>
E/flutter (16297): #2      Firestore.runTransaction (file:///G:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.7.3/lib/src/firestore.dart:115:10)
// here comes another <asynchronous suspension> followed by my code

这来自 Android

推荐答案

此后,我遇到的问题已由 cloud_firestore 团队解决。

The issue I was having has since been fixed by the cloud_firestore team.

如果您仍然遇到类似的问题,则应在StackOverflow上提问或创建问题

If you are still experiencing a similar issue, you should either ask a question here on StackOverflow or create an issue.

这篇关于Firestore交易无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆