Elixir version
1.18.4
Database and Version
PostgreSQL 17.9 (GCP)
Ecto Versions
3.14.1
Database Adapter and Versions (postgrex, myxql, etc)
0.19.3
Current behavior
A Repo.insert() failed with ** (DBConnection.TransactionError) transaction is not started
Just one in the whole database.
I changed it to Repo.insert(log: :error), pasted the module in the remote shell, and it worked.
I then changed the statement back to how it was, pasted the module again, and it continued to work.
That was consistent across two nodes.
Expected behavior
Repo.insert() doesn't fail with ** (DBConnection.TransactionError) transaction is not started or gives a useful debugging information.
Elixir version
1.18.4
Database and Version
PostgreSQL 17.9 (GCP)
Ecto Versions
3.14.1
Database Adapter and Versions (postgrex, myxql, etc)
0.19.3
Current behavior
A
Repo.insert()failed with** (DBConnection.TransactionError) transaction is not startedJust one in the whole database.
I changed it to
Repo.insert(log: :error), pasted the module in the remote shell, and it worked.I then changed the statement back to how it was, pasted the module again, and it continued to work.
That was consistent across two nodes.
Expected behavior
Repo.insert()doesn't fail with** (DBConnection.TransactionError) transaction is not startedor gives a useful debugging information.