Error: No transactions support in neon-http driver - unable_to_create_user
Signup is not working on all of my Better Auth projects. This is the error:
i created GitHub issue:
https://github.com/better-auth/better-auth/issues/4747
GitHub
Error: No transactions support in neon-http driver - unable_to_crea...
Is this suited for github? Yes, this is suited for github To Reproduce Create a project with Next.js, Drizzle and Neon. drizzle.ts should look like this: import { neon } from "@neondatabase/se...
10 Replies
What’s your auth config?
drizzle-orm/neon-http dependency is the problem
auth config is not the problem, it's happening on all of my projects
here is auth.ts from one of those projects
It's probably because of this update here: https://www.better-auth.com/changelogs#v1.3.10
Changelogs | Better Auth
Latest changes , fixes and updates.
I fixed it by downgrading to version 1.3.9
The problem is in this transactions update here: https://www.better-auth.com/changelogs#v1.3.10
Changelogs | Better Auth
Latest changes , fixes and updates.
Try setting
transaction: false
in drizzleAdapter
That worked for me, although I was using Cloudflare d1, not neon, so I’m not surebot on GitHub said the same thing, but he also said it's risky:
@OrcDev we're going to disable transactions for drivers that doesn't support it automatically on the next release. We should improve our messaging here as it's in a controlled environment, so the risk isn't that high. And we often do rollback changes programmatically if they compromise atomicity
Thanks for answering @bekacru, the problem is that all my apps just stopped working without me even knowing. Definitely need to put this in docs, and explain it better
Thanks for the feedback @OrcDev sorry for the interruption. We're rolling back changes and we'll add a section on the docs and explain it better
should be fixed on 1.3.12
Amazing! Thanks @bekacru!