Incorrect Request when the bookComponent Page is loading
At the following image at the network tab you can see two graphql requests are failing .
The message that comes from the backend is that :
2022-07-27T09:15:12.883Z - error: Variable "$id" of required type "ID!" was not provided.
{
error: {
message: 'Variable "$id" of required type "ID!" was not provided.',
locations: [ { line: 1, column: 23 } ],
path: undefined,
extensions: {
code: 'INTERNAL_SERVER_ERROR',
exception: {
stacktrace: [
'GraphQLError: Variable "$id" of required type "ID!" was not provided.',
' at _loop (/home/tsiou/Projects/ncbi/node_modules/graphql/execution/values.js:92:17)',
' at coerceVariableValues (/home/tsiou/Projects/ncbi/node_modules/graphql/execution/values.js:119:16)',
' at getVariableValues (/home/tsiou/Projects/ncbi/node_modules/graphql/execution/values.js:48:19)',
' at buildExecutionContext (/home/tsiou/Projects/ncbi/node_modules/graphql/execution/execute.js:184:61)',
' at executeImpl (/home/tsiou/Projects/ncbi/node_modules/graphql/execution/execute.js:89:20)',
' at Object.execute (/home/tsiou/Projects/ncbi/node_modules/graphql/execution/execute.js:64:35)',
' at /home/tsiou/Projects/ncbi/node_modules/apollo-server-core/dist/requestPipeline.js:261:48',
' at Generator.next (<anonymous>)',
' at /home/tsiou/Projects/ncbi/node_modules/apollo-server-core/dist/requestPipeline.js:8:71',
' at new Promise (<anonymous>)',
' at __awaiter (/home/tsiou/Projects/ncbi/node_modules/apollo-server-core/dist/requestPipeline.js:4:12)',
' at execute (/home/tsiou/Projects/ncbi/node_modules/apollo-server-core/dist/requestPipeline.js:240:20)',
' at Object.<anonymous> (/home/tsiou/Projects/ncbi/node_modules/apollo-server-core/dist/requestPipeline.js:177:42)',
' at Generator.next (<anonymous>)',
' at fulfilled (/home/tsiou/Projects/ncbi/node_modules/apollo-server-core/dist/requestPipeline.js:5:58)',
' at runMicrotasks (<anonymous>)'
]
}
}
}
}
This means that the request is not done correctly and it misses an ID.