Field 'email' doesn't have a default with connection pool in MySQL
Im getting this error since switching to a connection pool from single connection. This happens when creating a new user in my app with next-auth.
I tried changing to connection pool because I kept getting the " Can't add new command when connection is in closed state. " when leaving the app open for a while, as others mentioned before.
Using normal Mysql (despite the logs mentioning planetscale -Im not using planetscale)
For some reason this is not happening when running locally, only on prod.
Does somebody know what this is ?
1 Reply
Fixed it. I had a custom scope on next auth for discord that was missing the email scope. Removed it so it uses the default scopes