Describe the bug
On prisma deploy I get the following message
ERROR: Workspace alex-beyer does not exist
{
"data": {
"generateClusterToken": null
},
"errors": [
{
"message": "Workspace alex-beyer does not exist",
"locations": [
{
"line": 3,
"column": 9
}
],
"path": [
"generateClusterToken"
],
"code": 222
}
],
"status": 200
}
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the prisma generation to happen.
Versions (please complete the following information):
1.25.4]prisma CLI: [e.g. prisma/1.25.4 (windows-x64) node-v8.11.2]Windows 10] Additional context
prisma.yml file
# The HTTP endpoint for your Prisma API
#endpoint: ''
endpoint: https://us1.prisma.sh/alex-beyer/api/dev
# Points to the file that contains your datamodel
datamodel: datamodel.prisma
# Specifies language & location for the generated Prisma client
generate:
- generator: javascript-client
output: ../src/generated/prisma-client
hooks:
post-deploy:
- prisma generate
I have even logged into the prisma console to see that its running and it is. Copied the link and still says it doesnt exist
Hi @Fh-abeyer
Can you try deleting the .prisma folder(it is located at ~/.prisma and try again?
This will log you out and you will need to login again
@pantharshit00
I do not have a .prisma folder. The folders I have are generated/prisma-client and its contents. Then I also have the node_modules/prisma folder. Other than that there are only two files I created to hold the prisma configuration which are datamodel.prisma, and prisma.yml
It is in the home folder of your operating system not in your project folder.
In windows, it is in C:/Users/<YOUR USERNAME>/.prisma
In Linux/mac it is ~/.prisma
Please delete that and try again
@pantharshit00
That seems to have worked. So it's not possible to switch users without deleting that folder?
@Fh-abeyer
It happens only sometimes that the cli is unable to update that. If you encounter this again please open a new issue. I am closing this one now.
Ok thank you
Most helpful comment
Hi @Fh-abeyer
Can you try deleting the
.prismafolder(it is located at~/.prismaand try again?This will log you out and you will need to login again