Prisma 1 Forum

All tokens generated by Prisma CLI are invalid

I’m just getting started with Prisma, but I’ve been stuck trying to secure my deployed endpoint.

docker-compose up the docker services for DB and Prisma.

prisma deploy using the following prisma.yml:

endpoint: http://localhost:4466
datamodel: datamodel.prisma
secret: foo

Run prisma playground -> all queries return the following message: “Your token is invalid. It might have expired or you might be using a token from a different project.”

Same behaviour happens with curl using a token generated by the prisma token command or with prisma admin.

If I remove the secret and redeploy all queries work properly.

What am I missing?

Solved: it was a bug, prisma version 1.37.8 has it fixed.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.