You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ apollo schema:download --endpoint ... schema.json
✔ Loading Apollo config
✔ Fetching current schema
✖ Saving schema to schema.json
→ Expected undefined to be a GraphQL schema.
Error: Expected undefined to be a GraphQL schema.
previously it was:
$ apollo schema:download --endpoint ... schema.json
✔ Loading Apollo config
✖ Fetching current schema
→ Response not successful: Received status code 400
Saving schema to schema.json
Error: Response not successful: Received status code 400
Is it now unclear why the command failed.
The text was updated successfully, but these errors were encountered:
I want to upgrade from CLI 1.6 to 1.9.1, but this error i stopping me. How do I fix it?
"codegen": "yarn introspect-engine && yarn types",
"introspect-engine": "npx apollo schema:download schema.json",
"types": "npx apollo codegen:generate --target=typescript --clientSchema=src/localState/clientSchema.graphql --queries=\"src/**/*.{ts,tsx}\" --schema=schema.json --addTypename",
Running yarn codegen gives the following output, but works fine on 1.6:
yarn run v1.9.4
$ yarn introspect-engine && yarn types
$ npx apollo schema:download schema.json
✔ Loading Apollo config
✔ Fetching current schema
✖ Saving schema to schema.json
→ Expected undefined to be a GraphQL schema.
Error: Expected undefined to be a GraphQL schema.
Regression of #533
Error message is now:
previously it was:
Is it now unclear why the command failed.
The text was updated successfully, but these errors were encountered: