Prisma1: Hello World example gives "Project not found: 'graphql$default'" error

Created on 31 Aug 2018  路  2Comments  路  Source: prisma/prisma1

Describe the bug

simple hello-world example gives the following error when using the graphql
playground:

middleware.js:1 Uncaught Error: {
  "errors": [
    {
      "message": "Project not found: 'graphql$default'",
      "code": 3016,
      "requestId": "local:api:cjlh5a68200090973l1ujzjyy"
    }
  ]
}

the following logs are shown in docker-compose:

prisma_1    | Deployment worker initialization complete.
postgres_1  | 2018-08-30 22:31:37.155 UTC [74] ERROR:  null value in column "lastPinged" violates not-null constraint
postgres_1  | 2018-08-30 22:31:37.155 UTC [74] DETAIL:  Failing row contains (4268368b-cd24-40b5-b938-2529c67d07d3, null).
postgres_1  | 2018-08-30 22:31:37.155 UTC [74] STATEMENT:  insert into "TelemetryInfo" ("id","lastPinged")  values ($1,$2)
prisma_1    | Initializing workers...
prisma_1    | Successfully started 1 workers.
prisma_1    | Server running on :4466
prisma_1    | Version is up to date.
prisma_1    | Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables 'CLUSTER_PUBLIC_KEY' (asymmetric, deprecated soon) or 'PRISMA_MANAGEMENT_API_JWT_SECRET' (symmetric JWT).
prisma_1    | {"key":"error/handled","requestId":"local:management:cjlh59cpk00010973a795ddkq","payload":{"exception":"com.prisma.deploy.schema.InvalidProjectId: No service with name 'default' and stage 'default' found","query":"\n      query($name: String! $stage: String!) {\n        project(name: $name stage: $stage) {\n          name\n          stage\n        }\n      }\n    ","variables":"{\"name\":\"default\",\"stage\":\"default\"}","code":"4000","stack_trace":"com.prisma.deploy.schema.SchemaBuilderImpl.$anonfun$projectField$3(SchemaBuilder.scala:139)\\n scala.Option.getOrElse(Option.scala:121)\\n com.prisma.deploy.schema.SchemaBuilderImpl.$anonfun$projectField$2(SchemaBuilder.scala:139)\\n scala.util.Success.$anonfun$map$1(Try.scala:251)\\n scala.util.Success.map(Try.scala:209)\\n scala.concurrent.Future.$anonfun$map$1(Future.scala:287)\\n scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)\\n scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)\\n scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)\\n akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)\\n akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)\\n scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)\\n scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)\\n akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)\\n akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)\\n akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:43)\\n akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\\n akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\\n akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\\n akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)","message":"No service with name 'default' and stage 'default' found"}}
prisma_1    | Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables 'CLUSTER_PUBLIC_KEY' (asymmetric, deprecated soon) or 'PRISMA_MANAGEMENT_API_JWT_SECRET' (symmetric JWT).
prisma_1    | Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables 'CLUSTER_PUBLIC_KEY' (asymmetric, deprecated soon) or 'PRISMA_MANAGEMENT_API_JWT_SECRET' (symmetric JWT).
prisma_1    | [Debug] Initializing deployment worker for default$default
prisma_1    | [Debug] Scheduling deployment for project default$default
prisma_1    | Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables 'CLUSTER_PUBLIC_KEY' (asymmetric, deprecated soon) or 'PRISMA_MANAGEMENT_API_JWT_SECRET' (symmetric JWT).
prisma_1    | [Debug] Applied migration for project default$default
prisma_1    | Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables 'CLUSTER_PUBLIC_KEY' (asymmetric, deprecated soon) or 'PRISMA_MANAGEMENT_API_JWT_SECRET' (symmetric JWT).
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.
prisma_1    | [Metrics] No Prisma Cloud secret is set. Metrics collection is disabled.

To Reproduce

create hello-world app and use docker-compose up to launch. visit localhost:4466

Expected behavior

see something in the playground schema explorer

Screenshots

image

All 2 comments

found you need to run prisma playground

Still seeing this error after running prisma playground 馃槙

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marktani picture marktani  路  3Comments

dohomi picture dohomi  路  3Comments

MitkoTschimev picture MitkoTschimev  路  3Comments

tbrannam picture tbrannam  路  3Comments

Fi1osof picture Fi1osof  路  3Comments