I’ve been setting up 1.7+ and I’ve come into a slight problem with both I am getting this error:
[GraphQL error]: Message: Project not found: 'default@default', Location: undefined, Path: undefined
[Network error]: Error: Project not found: 'default@default'
It seem neither my project nor playground can connect to Prisma.
Can you provide more information to help me reproduce this? 🙂
What is your Playground version?
What steps do you follow that result in that error?
What have you already tried to work around it?
Thanks!
Graphql-cli 2.15.11
Prisma version 1.7.1
graphqlconfig.yml
projects:
app:
schemaPath: "src/schema.graphql"
extensions:
endpoints:
default: "http://localhost:4000"
db:
schemaPath: "src/generated/prisma.graphql"
extensions:
endpoints:
default: "http://localhost:4466"
prisma: database/prisma.yml
prepare-binding:
output: src/generated/prisma.ts
generator: prisma-ts
prisma.yml
datamodel: datamodel.graphql
endpoint: http://localhost:4466
hooks:
post-deploy:
- echo "Deployment finished"
- graphql get-schema --project db
- graphql prepare
Graphql playground knows my schema, but it can not connect to my Prisma server which is up and running.
Thanks for providing additional information.
What steps do you follow that result in that error? I have yet to reproduce this myself 🙂
Well, I am trying to upgrade and I must have made a error somewhere, I could upload it to github, if that will help, here it is - https://github.com/OGNeutron/Prisma_main_hub
I'll take a look at this, thanks!
You still haven't provided a list of steps that you are following to end up with this error message.
Can you please provide a list of steps that you follow to end up with this error message?
It's not exactly straight forward, as it's a migration step, basically I removed deprecated prisma.yml attributes, than it downloaded docker-compose.yml, I sorted those problems out, finally got playground and server up and running, and now it seems neither playground or Prisma can make the connection.
Now getting errors like these:
[GraphQL error]: Message: Variable '$_where' cannot be non input type 'UserWhereInput'. (line 1, column 17):
query ($_where: UserWhereInput, $_orderBy: UserOrderByInput, $_skip: Int, $_after: String, $_before: String, $_first: Int, $_last: Int)
And server not connected on playground.
And docker is running:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
16fcb0c4d991 prismagraphql/prisma:1.7 "/bin/sh -c /app/sta…" 2 hours ago Up 2 hours 0.0.0.0:4466->4466/tcp prismamainhub_prisma_1
0ed14a9b0595 mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up 2 hours 3306/tcp prismamainhub_db_1
I see. So in your current setup after the migration, what commands are you running that result in that error:
[GraphQL error]: Message: Project not found: 'default@default', Location: undefined, Path: undefined
[Network error]: Error: Project not found: 'default@default'
Is it prisma deploy, prisma info or something else?
In your current situation, what specific query/mutation are you running that results in the error:
[GraphQL error]: Message: Variable '$_where' cannot be non input type 'UserWhereInput'. (line 1, column 17):
query ($_where: UserWhereInput, $_orderBy: UserOrderByInput, $_skip: Int, $_after: String, $_before: String, $_first: Int, $_last: Int)
?
Well, prisma deploy runs fine, it generates a new prisma.ts file as-well, so that doesn't seem to be the problem, but I don't see the schema or even connect to Prisma with playground, though for some reason it's not generating prisma.graphql, it's missing most of the types.
And if I make a request I keep getting the above errors
Prisma info shows:
default (cluster: `local`)
HTTP: http://localhost:4466
Websocket: ws://localhost:4466
Just found another issue, graphql prepare shows an error:
! Syntax Error: Expected Name, found }
Thanks, the syntax error is probably unrelated, I created a separate issue report for that here: https://github.com/graphcool/prisma/issues/2287
I cannot reproduce any other issues.
Here are the steps I followed:
git clone https://github.com/OGNeutron/Prisma_main_hub.git r-2278
cd r-2278
yarn
prisma deploy
touch .env
cat PRISMA_ENDPOINT=http://localhost:4466 >> .env
yarn run dev
This starts the application server at port 4000 and opens the Playground:

Then I ran this query successfully:
query {
showAllForums(limit: 3, offset: 3) {
id
}
}
result:
{
"data": {
"showAllForums": []
}
}
When you follow the exact same steps, where does your behaviour start to diverge from mine?
I have the same error when I run the command prisma seed. If it can help ;)
prisma --version prisma/1.7.3 (darwin-x64) node-v9.11.1
graphql --version 2.15.13
ERROR: Project not found: 'kuiz@dev'
{
"errors": [
{
"message": "Project not found: 'kuiz@dev'",
"code": 3016,
"requestId": "eu1:api:cjgii7r7nri9w0b48rl71jflp"
}
],
"status": 200
}
# The endpoint of your Prisma API (deployed to a Prisma Sandbox).
endpoint: ${env:PRISMA_ENDPOINT}
# The file containing the definition of your data model.
datamodel: datamodel.graphql
# Seed your service with initial data based on `seed.graphql`.
seed:
import: seed.graphql
# Download the GraphQL schema of the Prisma API into
# `src/generated/prisma.graphql` (as specfied in `.graphqlconfig.yml`).
# Then generate the corresponding TypeScript definitions into
# `src/generated/prisma.ts` (also specfied in `.graphqlconfig.yml`)
# with `graphql prepare` .
hooks:
post-deploy:
- graphql get-schema --project database
- graphql prepare
# If specified, the `secret` must be used to generate a JWT which is attached
# to the `Authorization` header of HTTP requests made against the Prisma API.
# Info: https://www.prisma.io/docs/reference/prisma-api/concepts-utee3eiquo#authentication
secret: ${env:PRISMA_SECRET}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi!
I have this issue when I forget to deploy changes for schema.
If you sure that your prisma server works try yarn prisma deploy in project dir, and then graphql get-schema --project database
Most helpful comment
I have the same error when I run the command
prisma seed. If it can help ;)prisma --versionprisma/1.7.3 (darwin-x64) node-v9.11.1graphql --version2.15.13