-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolep: cloud_firestoreObsolete - Firebase Firestore pluginObsolete - Firebase Firestore pluginp: firebaseObsolete - Firebase pluginsObsolete - Firebase pluginspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specifically
Description
I am using the scenario for running a transaction from the example:
final DocumentReference postRef = Firestore.instance.document('posts/123');
Firestore.instance.runTransaction((Transaction tx) async {
DocumentSnapshot postSnapshot = await tx.get(postRef);
if (postSnapshot.exists) {
await tx.update(postRef, <String, dynamic>{'likesCount': postSnapshot.data['likesCount'] + 1});
}
});It worked for me before, but not now, apparently:
DocumentSnapshot postSnapshot = await tx.get(postRef);This instantly fails with a PlatformException , its message: Timed out waiting for task.
- Flutter version: 0.5.4
- cloud_firestore: 0.7.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolep: cloud_firestoreObsolete - Firebase Firestore pluginObsolete - Firebase Firestore pluginp: firebaseObsolete - Firebase pluginsObsolete - Firebase pluginspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specifically