Prisma1: "Project not found" when seeding on deploy or running prisma seed

Created on 10 May 2018  路  2Comments  路  Source: prisma/prisma1

Bug Report

Current behavior

Seeding on prisma deploy or running prisma seed results in this error message:

ERROR: Project not found: 'service-name@dev'

{
  "errors": [
    {
      "message": "Project not found: 'service-name@dev'",
      "code": 3016,
      "requestId": "eu1:api:cjh0bxiuf01pn0b14ybipeqbb"
    }
  ],
  "status": 200
}

Reproduction

prisma init service-name
cd service-name
touch seed.graphql
echo 'mutation{createUser(data:{name:"a"}){id}}' > seed.graphql

Add this to prisma.yml:

seed:
  import: seed.graphql
prisma deploy
prisma seed

Expected behavior?

It works & no error is returned.

bu2-confirmed arecli

All 2 comments

After the fix in #2400 which updates the docker-image to prisma1.8.2 with docker pull prismagraphql/prisma:1.8 this is now working again for me. I tested it on a local cluster and ran prisma seed -r successfully.

Thanks so much for your input @dferber90!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sedubois picture sedubois  路  3Comments

thomaswright picture thomaswright  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments

marktani picture marktani  路  3Comments

notrab picture notrab  路  3Comments