New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mesh - FHIR Failed to generate the schema Error: Unable to load fhir.schema.json #4512
Comments
I also got the same Permission denied error in the sandbox. Can you clone the repository locally and try please https://github.com/nirzaf/json-schema-fhir |
I manage to run the server. but cannot Query anything These are screenshot samples of queries which are available in the sample queries folder in the same project using same FHIR resources URL http://hapi.fhir.org/base64 |
It seems you use an older version because we don't have a command like |
Repository Link |
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
I am trying to run the project given in the example project given in this repository called json-schema-fhir
To Reproduce
Steps to reproduce the behaviour:
clone this repository json-schema-fhir
https://codesandbox.io/p/github/nirzaf/json-schema-fhir/draft/upbeat-shtern?file=%2Fexample-queries%2Fpatient.query.graphql&selection=%5B%7B%22endColumn%22%3A2%2C%22endLineNumber%22%3A18%2C%22startColumn%22%3A2%2C%22startLineNumber%22%3A18%7D%5D&workspace=%257B%2522activeFileId%2522%253A%2522cl85mvl6n0009lpgl7hjocn5x%2522%252C%2522openFiles%2522%253A%255B%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522sidekickItems%2522%253A%255B%257B%2522key%2522%253A%2522cl85n6k28000k356hw6iyfgvq%2522%252C%2522type%2522%253A%2522PROJECT_SETUP%2522%252C%2522isMinimized%2522%253Afalse%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522start%2522%252C%2522key%2522%253A%2522cl85muipb0008356hv6chabsl%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%257D
yarn install
yarn run
Expected behaviour
Should begin the localhost:3000 server and should be able to query hapi.fhir.org via graphql
Environment:
@graphql-mesh/...
:Additional context
package.json file
##Complete error log
npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead.� �️ Mesh - Server Generating the unified schema...
� �️ Mesh - FHIR Failed to generate the schema Error: Unable to load ./fhir.schema.json from C:\Users\mmfazrin\RiderProjects\json-schema-fhir
at C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules\json-machete\index.js:157:35
at async dereferenceObject (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules\json-machete\index.js:150:40)
at async dereferenceObject (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules\json-machete\index.js:265:36)
at async dereferenceObject (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules\json-machete\index.js:265:36)
at async dereferenceObject (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules\json-machete\index.js:265:36)
at async Object.dereferenceObject (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules\json-machete\index.js:265:36)
at async getDereferencedJSONSchemaFromOperations (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules@omnigraph\json-schema\index.js:303:35)
at async Object.createBundle (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules@omnigraph\json-schema\index.js:2282:32)
at async Object.getWithSet (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules@graphql-mesh\store\index.js:160:38)
at async JsonSchemaHandler.getMeshSource (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules@graphql-mesh\json-schema\index.js:50:24)
� �️ Mesh - Server Error: Schemas couldn't be generated successfully. Check for the logs by running Mesh with DEBUG=1 environmental variable to get more verbose output.
at Object.getMesh (C:\Users\mmfazrin\RiderProjects\json-schema-fhir\node_modules@graphql-mesh\runtime\index.js:554:15)
The text was updated successfully, but these errors were encountered: