Describe the bug
When prodiving the PRISMA_MANAGEMENT_API_SECRET env var to the CLI, it should use that value and not override it with a value based on the logged in account
To Reproduce
Steps to reproduce the behavior:
managementApiSecretprisma deployCreating stage dev for service heroku-database
ERROR: Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.
{
"data": {
"addProject": null
},
"errors": [
{
"locations": [
{
"line": 2,
"column": 9
}
],
"path": [
"addProject"
],
"code": 3015,
"message": "Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.",
"requestId": "local:management:cjofwmfmt00050684141qxrsn"
}
],
"status": 200
}
Expected behavior
For the deploy to be succesful
Versions (please complete the following information):
prisma CLI: prisma/1.21.0 (darwin-x64) node-v10.9.01.20.4]Additional context
This was the root of the problem in this issue, more context can be found here.
Workaround
Log out of the CLI and perform the deploy.
@jhalborg Now, I have a this problem same you.
Same here. The workaround helped for now
I try to prisma log out and clear cloud session key It's not working. But I can deploy first server and first service. In the server & service 2 It's can't deploy. I try to use Heroku to practice step to deploy.
This is fixed in beta.
Most helpful comment
This is fixed in beta.