0

I am trying to figure out how to resolve issues that have recently arisen with using apollo with a prisma schema. I didn't change any code in my app, and when I got back from a holiday (not a single line touched) I can no longer interact with my apollo app). I get a strange 406 error that says:

Error sending report to Apollo servers: HTTP status 406, Please check your API key in the Engine configuration

When I look on the apollo website, it seems like I'm expected to use rover CLI tools now instead of whatever it was previously. I am struggling to make sense of the configuration instructions. I have finished my setup on a classic federation 2 graph, except now, I have 2 new files in my root directory. One is a /router file - I don't think it has any content. The other is called product-schema.graphql. I made both of these because the instructions for configuring rover told me to.

I now have an apollo sandbox that only has the content of the product-schema.grpahql file - it used to populate the details of my src/db/schema.prisma file.

I still cant run the codegen watch:

graphql-codegen --watch
  ✔ Parse configuration
  ❯ Generate outputs
    ❯ Generate src/lib/graphql.tsx
      ✖ Load GraphQL schemas
        → Failed to load schema
        Load GraphQL documents
        Generate


 Found 1 error

  ✖ src/lib/graphql.tsx
    Failed to load schema from http://localhost:5555/graphql:

Does anyone know how to figure out what to do try to make apollo rover cli work with prisma schema?

Mel
  • 2,481
  • 26
  • 113
  • 273
  • Is your repository open source or can you provide a minimal reproduction, it's difficult to debug what could be going wrong without reproducing it. – Nurul Sundarani Oct 11 '22 at 10:12

0 Answers0