Prisma1: Workspace does not exist

Created on 28 Jan 2019  路  6Comments  路  Source: prisma/prisma1

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:

  1. Run prisma deploy
  2. See error

Expected behavior
I expect the prisma generation to happen.

Versions (please complete the following information):

  • Connector: prisma demo server
  • Prisma Server: [e.g. 1.25.4]
  • prisma CLI: [e.g. prisma/1.25.4 (windows-x64) node-v8.11.2]
  • OS: [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

kinquestion aredeploy

Most helpful comment

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

All 6 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sorenbs picture sorenbs  路  3Comments

jannone picture jannone  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments

marktani picture marktani  路  3Comments

schickling picture schickling  路  3Comments