Prisma Postrgres init CLI error
When I run
npx prisma@latest init --db
, I get this:
Error: {"error":"Authentication failed because the access token was expired"}4 Replies
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into
#ask-ai
if you get antsy for a second opinion!Hey @akinkunmi!
Can you try removing the token from this path
/Users/<username>/Library/Preferences/prisma-platform-cli
(Assuming you are on MacOS) and then try running the command again?Worked. Thanks!
I suggest the CLI should handle this automatically, so I wouldn't have to delete
auth.json
to reauthenticate next time.I agree.
I have reported this to our team internally, we will fix it upcoming prisma releases.
Thank you for reporting 👍