Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Error "CheckFailed: one or more checks failed" #30

Open
namlt3820 opened this issue Aug 30, 2022 · 0 comments
Open

Error "CheckFailed: one or more checks failed" #30

namlt3820 opened this issue Aug 30, 2022 · 0 comments

Comments

@namlt3820
Copy link

I cloned the repo, setup .env files, uploaded subgraph schemas, and when I run docker-compose up --build I got this error:

subscriptions_server  | This package has been deprecated and now it only exports makeExecutableSchema.
subscriptions_server  | And it will no longer receive updates.
subscriptions_server  | We recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.
subscriptions_server  | Check out https://www.graphql-tools.com to learn what package you should use instead!
gateway_server        | [server:gateway] Gateway successfully initialized (but not yet loaded)
gateway_server        | [server:gateway] Loading gateway...
subscriptions_server  | Gateway successfully initialized (but not yet loaded)
subscriptions_server  | Loading gateway...
gateway_server        | [server:gateway] (node:125) UnhandledPromiseRejectionWarning: CheckFailed: one or more checks failed
gateway_server        | [server:gateway]     at new GraphQLErrorExt (/home/node/app/node_modules/@apollo/core-schema/dist/error.js:7:9)
gateway_server        | [server:gateway]     at err (/home/node/app/node_modules/@apollo/core-schema/dist/error.js:39:19)
gateway_server        | [server:gateway]     at ErrCheckFailed (/home/node/app/node_modules/@apollo/core-schema/dist/core.js:15:52)
gateway_server        | [server:gateway]     at CoreSchema.check (/home/node/app/node_modules/@apollo/core-schema/dist/core.js:72:42)
gateway_server        | [server:gateway]     at CoreSchema.check (/home/node/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
gateway_server        | [server:gateway]     at ApolloGateway.createSchemaFromSupergraphSdl (/home/node/app/node_modules/@apollo/gateway/dist/index.js:500:14)
gateway_server        | [server:gateway]     at ApolloGateway.updateWithSupergraphSdl (/home/node/app/node_modules/@apollo/gateway/dist/index.js:422:72)
gateway_server        | [server:gateway]     at ApolloGateway.externalSupergraphUpdateCallback (/home/node/app/node_modules/@apollo/gateway/dist/index.js:377:18)
gateway_server        | [server:gateway]     at ApolloGateway.initializeSupergraphManager (/home/node/app/node_modules/@apollo/gateway/dist/index.js:350:18)
gateway_server        | [server:gateway]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
gateway_server        | [server:gateway] (Use `node --trace-warnings ...` to show where the warning was created)
gateway_server        | [server:gateway] (node:125) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
gateway_server        | [server:gateway] (node:125) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
gateway_server        | [server:gateway] [nodemon] clean exit - waiting for changes before restart
subscriptions_server  | (node:30) UnhandledPromiseRejectionWarning: TypeError: Cannot assign to read only property 'name' of object 'GraphQLError: one or more checks failed'
subscriptions_server  |     at new GraphQLErrorExt (/home/node/app/node_modules/@apollo/core-schema/dist/error.js:15:19)
subscriptions_server  |     at err (/home/node/app/node_modules/@apollo/core-schema/dist/error.js:39:19)
subscriptions_server  |     at ErrCheckFailed (/home/node/app/node_modules/@apollo/core-schema/dist/core.js:15:52)
subscriptions_server  |     at CoreSchema.check (/home/node/app/node_modules/@apollo/core-schema/dist/core.js:72:42)
subscriptions_server  |     at CoreSchema.check (/home/node/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
subscriptions_server  |     at ApolloGateway.createSchemaFromSupergraphSdl (/home/node/app/node_modules/@apollo/gateway/dist/index.js:500:14)
subscriptions_server  |     at ApolloGateway.updateWithSupergraphSdl (/home/node/app/node_modules/@apollo/gateway/dist/index.js:422:72)
subscriptions_server  |     at ApolloGateway.externalSupergraphUpdateCallback (/home/node/app/node_modules/@apollo/gateway/dist/index.js:377:18)
subscriptions_server  |     at ApolloGateway.initializeSupergraphManager (/home/node/app/node_modules/@apollo/gateway/dist/index.js:350:18)
subscriptions_server  |     at processTicksAndRejections (internal/process/task_queues.js:93:5)
subscriptions_server  | (Use `node --trace-warnings ...` to show where the warning was created)
subscriptions_server  | (node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
subscriptions_server  | (node:30) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
react_app             | Compiled successfully!

Does anyone know what's the cause of this. Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant