Hello guys! I started playin with graphql and pris...
# prisma-whats-new
p
Hello guys! I started playin with graphql and prisma, and I have some problems. Followed this tuttorial https://www.prismagraphql.com/docs/tutorials/prisma-basics/getting-started-ouzia3ahqu and the problem is when I execute a mutatition 'signup', I'm getting an error '[Network error]: Error: Server response was missing for query 'null'.' Clicking on database schema in playground shows that schema is not available. I checked process.env variables, and they are working fine, Idk whats the problem
n
hey @pt789 I recently had the same error. Please check the endpoint you're connecting to in
index.js
, it's probably not the right one 🙂
p
Copy code
const server = new GraphQLServer({
  typeDefs: 'src/schema.graphql',
  resolvers,
  context: req => ({
    ...req,
    db: new Prisma({
      typeDefs: 'src/generated/prisma.graphql',
      endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma DB service (value is set in .env)
      secret: process.env.PRISMA_SECRET, // taken from database/prisma.yml (value is set in .env)
      debug: false, // log all GraphQL queries & mutations
    }),
  }),
})
The endpoint is from process.env, and this is in .env
Copy code
PRISMA_ENDPOINT="<http://localhost:4466/hello-prisma/dev>"
n
what's the output of
prisma info
?
p
Copy code
Service Name: hello-prisma

  dev (cluster: `local`)

    HTTP:       <http://localhost:4466/hello-prisma/dev>
    Websocket:  <ws://localhost:4466/hello-prisma/dev>
I can open this url in borwser, playground is loaded, but the schema is missing
and i get this in
Copy code
{
  "code": 3016,
  "requestId": "api:api:cjcvsfh4t005d0121901vu34p",
  "error": "Project not found: 'hello-prisma@dev'"
}
n
can you try removing the
cluster
property from your
prisma.yml
file, and deploy to a developer cluster instead?
I believe you are experiencing this problem: https://github.com/graphcool/prisma/issues/1743
p
Deleting files and installing new project with cli fixed the issue. Thx for help