Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
14 replies
Entaro

Unable to invoke prisma mutation to planetscale dev branch.

Dev branch was created on planetscale and the env variables are set to dev branch values.

npx prisma db push


works fine and succeeds. Looking at planetscale the new tables/fields are created but when I go to try to invoke the prisma mutation I get the error:

❌ tRPC failed on upload.uploadData:
Invalid `prisma.order.create()` invocation:


Error querying the database: Server error: `ERROR HY000 (1105): unavailable: unable to connect to branch BRANCH_NAME_HERE'


Also for whatever reason in the console on planetscale it says there's a syntax error when typing:

SELECT * FROM Mytable;


Any idea what's going on?
Solution
(restarting the application again after
npx prisma db push
)
Was this page helpful?