#Prisma Postrgres init CLI error

5 messages · Page 1 of 1 (latest)

flint steppe
#

When I run npx prisma@latest init --db, I get this:

Error: {"error":"Authentication failed because the access token was expired"}

stuck marshBOT
#

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!

rose nymph
#

Hey @flint steppe!

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?

flint steppe
#

Worked. Thanks!

#

I suggest the CLI should handle this automatically, so I wouldn't have to delete auth.json to reauthenticate next time.