Skip to content

Datastore: cannot create more than one entity while running inside a transaction #300

@silvolu

Description

@silvolu

When I try to create the second entity I receive the following error:
Uncaught Error: The referenced transaction has expired or is no longer valid.

Happens because DatastoreRequest.prototype.save commits regardless of whether we are in a transaction or not.

DatastoreRequest.prototype.delete does the same, which means that I cannot have 2 deletes, 1 save and 1 delete....

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions