Firestore: Can't get data in transaction.get call #8
Labels
api: firestore
Issues related to the googleapis/python-firestore API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
python --version
: Python 3.7.4pip show google-<service>
orpip freeze
: google-cloud-firestore==1.6.1Steps to reproduce
AttributeError: 'bytes' object has no attribute 'in_progress'
.Code example
Stack trace
Additional Notes
It appears the helper function
get_transaction_id
is expecting aTransaction
object, but both theTransaction.get()
andTransaction.get_all()
calls are passing aTransaction._id
.When I changed line 230 of transaction.py from:
return ref_or_query.stream(transaction=self._id)
to:
return ref_or_query.stream(transaction=self)
It appears to fix the issue.
The text was updated successfully, but these errors were encountered: