I upgraded apollo server to v3.6.3 and schema to federation_version: =2.2.1. My schema composed successfully using rover, but when I run the server. I encountered the following error
2024-04-16 12:08:03 /usr/src/app/node_modules/@apollo/core-schema/dist/error.js:7
2024-04-16 12:08:03 super(message, props === null || props === void 0 ? void 0 : props.nodes, props === null || props === void 0 ? void 0 : props.source, props === null || props === void 0 ? void 0 : props.positions, props === null || props === void 0 ? void 0 : props.path, props === null || props === void 0 ? void 0 : props.originalError, props === null || props === void 0 ? void 0 : props.extensions);
2024-04-16 12:08:03 ^
2024-04-16 12:08:03
2024-04-16 12:08:03 CheckFailed: one or more checks failed
2024-04-16 12:08:03 at new GraphQLErrorExt (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:7:9)
2024-04-16 12:08:03 at err (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:37:19)
2024-04-16 12:08:03 at ErrCheckFailed (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:15:52)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:72:42)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14)
2024-04-16 12:08:03 at ApolloGateway.updateWithSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:426:72)
2024-04-16 12:08:03 at ApolloGateway.externalSupergraphUpdateCallback (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:381:18)
2024-04-16 12:08:03 at ApolloGateway.initializeSupergraphManager (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:354:18)
2024-04-16 12:08:03 at async ApolloGateway.load (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:269:13) {
2024-04-16 12:08:03 code: 'CheckFailed',
2024-04-16 12:08:03 causes: [
2024-04-16 12:08:03 NoCore: no core feature found
2024-04-16 12:08:03 at new GraphQLErrorExt (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:7:9)
2024-04-16 12:08:03 at err (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:37:19)
2024-04-16 12:08:03 at ErrNoCore (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:42:47)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:184:37)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14) {
2024-04-16 12:08:03 code: 'NoCore',
2024-04-16 12:08:03 causes: [
2024-04-16 12:08:03 GraphQLError [Object]: Argument "feature" of required type "String!" was not provided.
2024-04-16 12:08:03 at getArgumentValues (/usr/src/app/node_modules/graphql/execution/values.js:160:15)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:151:65)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14) {
2024-04-16 12:08:03 locations: [ [Object] ]
2024-04-16 12:08:03 },
2024-04-16 12:08:03 GraphQLError [Object]: Argument "feature" of required type "String!" was not provided.
2024-04-16 12:08:03 at getArgumentValues (/usr/src/app/node_modules/graphql/execution/values.js:160:15)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:151:65)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14) {
2024-04-16 12:08:03 locations: [ [Object] ]
2024-04-16 12:08:03 }
2024-04-16 12:08:03 ]
2024-04-16 12:08:03 },
2024-04-16 12:08:03 NoCore: no core feature found
2024-04-16 12:08:03 at new GraphQLErrorExt (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:7:9)
2024-04-16 12:08:03 at err (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:37:19)
2024-04-16 12:08:03 at ErrNoCore (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:42:47)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:184:37)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14) {
2024-04-16 12:08:03 code: 'NoCore',
2024-04-16 12:08:03 causes: [
2024-04-16 12:08:03 GraphQLError [Object]: Argument "feature" of required type "String!" was not provided.
2024-04-16 12:08:03 at getArgumentValues (/usr/src/app/node_modules/graphql/execution/values.js:160:15)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:151:65)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14) {
2024-04-16 12:08:03 locations: [ [Object] ]
2024-04-16 12:08:03 },
2024-04-16 12:08:03 GraphQLError [Object]: Argument "feature" of required type "String!" was not provided.
2024-04-16 12:08:03 at getArgumentValues (/usr/src/app/node_modules/graphql/execution/values.js:160:15)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:151:65)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14) {
2024-04-16 12:08:03 locations: [ [Object] ]
2024-04-16 12:08:03 }
2024-04-16 12:08:03 ]
2024-04-16 12:08:03 },
2024-04-16 12:08:03 NoCore: no core feature found
2024-04-16 12:08:03 at new GraphQLErrorExt (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:7:9)
2024-04-16 12:08:03 at err (/usr/src/app/node_modules/@apollo/core-schema/dist/error.js:37:19)
2024-04-16 12:08:03 at ErrNoCore (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:42:47)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:184:37)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14) {
2024-04-16 12:08:03 code: 'NoCore',
2024-04-16 12:08:03 causes: [
2024-04-16 12:08:03 GraphQLError [Object]: Argument "feature" of required type "String!" was not provided.
2024-04-16 12:08:03 at getArgumentValues (/usr/src/app/node_modules/graphql/execution/values.js:160:15)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:151:65)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14) {
2024-04-16 12:08:03 locations: [ [Object] ]
2024-04-16 12:08:03 },
2024-04-16 12:08:03 GraphQLError [Object]: Argument "feature" of required type "String!" was not provided.
2024-04-16 12:08:03 at getArgumentValues (/usr/src/app/node_modules/graphql/execution/values.js:160:15)
2024-04-16 12:08:03 at CoreSchema.features (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:151:65)
2024-04-16 12:08:03 at Cell.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:177:31)
2024-04-16 12:08:03 at CoreSchema.evaluate (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:111:22)
2024-04-16 12:08:03 at CoreSchema.try (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:45:14)
2024-04-16 12:08:03 at /usr/src/app/node_modules/@apollo/core-schema/dist/core.js:65:25
2024-04-16 12:08:03 at CoreSchema.trace (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:98:13)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/core.js:63:14)
2024-04-16 12:08:03 at CoreSchema.check (/usr/src/app/node_modules/@apollo/core-schema/dist/schema.js:71:22)
2024-04-16 12:08:03 at ApolloGateway.createSchemaFromSupergraphSdl (/usr/src/app/node_modules/@apollo/gateway/dist/index.js:504:14) {
2024-04-16 12:08:03 locations: [ [Object] ]
2024-04-16 12:08:03 }
2024-04-16 12:08:03 ]
2024-04-16 12:08:03 }
2024-04-16 12:08:03 ]
2024-04-16 12:08:03 }
2024-04-16 12:08:03
2024-04-16 12:08:03 Node.js v20.12.1
Here is my gateway package.json
{
“name”: “gateway”,
“version”: “1.0.0”,
“description”: “Graphql Gateway Server”,
“author”: “someone@domain.com”,
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
},
“dependencies”: {
“@apollo/gateway”: “^0.48.3”,
“apollo-server”: “^3.6.3”,
“graphql”: “^15.8.0”,
“jsonwebtoken”: “^9.0.2”,
“jwks-rsa”: “^2.1.4”
},
“devDependencies”: {
“apollo-cache-inmemory”: “^1.6.5”,
“apollo-client”: “^2.6.8”,
“apollo-link-http”: “^1.5.16”,
“node-fetch”: “^2.6.0”
}
}
Your attention to this is very much appreciated.