Getting error while started using graphql source #4822
Unanswered
sunnybogawat
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Could you create a reproduction on CodeSandbox or StackBlitz? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using mesh I am connecting to an open API source and all my API is working absolutely fine then I have added another source with graphql endpoint and then when I am trying to build I am seeing the following error. I am using the latest version of cli.
`@opengov/[email protected] mesh-build
💡 🕸️ Mesh Cleaning existing artifacts
💡 🕸️ Mesh Reading the configuration
💥 🕸️ Mesh TypeError: HandlerCtor is not a constructor
at /Users/admin/CIT_Projects/records-api/cit-plce-dome/node_modules/@graphql-mesh/config/index.js:366:28
at async /Users/admin/CIT_Projects/records-api/cit-plce-dome/node_modules/@graphql-mesh/config/index.js:345:17
at async Promise.all (index 1)
at async Promise.all (index 0)
at async Object.processConfig (/Users/admin/CIT_Projects/records-api/cit-plce-dome/node_modules/@graphql-mesh/config/index.js:337:113)
at async Object.handler (/Users/admin/CIT_Projects/records-api/cit-plce-dome/node_modules/@graphql-mesh/cli/bin.js:1020:32)
npm ERR! Lifecycle script
mesh-build
failed with error:npm ERR! Error: command failed
npm ERR! in workspace: @opengov/[email protected]
npm ERR! at location: /Users/admin/CIT_Projects/records-api/cit-plce-dome/graphql-mesh
npm ERR! Lifecycle script
build
failed with error:npm ERR! Error: command failed
npm ERR! in workspace: @opengov/[email protected]
npm ERR! at location: /Users/admin/CIT_Projects/records-api/cit-plce-dome/graphql-mesh
my meshrc.yaml file is as follows
sources:handler:
openapi:
source: ./openapi-spec/test_api.yml
ignoreErrorResponses: true
baseUrl: "{env.TEST_API_BASE_URL}/{context.community}"
operationHeaders:
Authorization: "{context.authorization}"
handler:
graphql:
endpoint: https://test.data.ind.test.com/forms/ind/graphiql
operationHeaders:
Authorization: {context.authorization}
`
Beta Was this translation helpful? Give feedback.
All reactions