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
Metadata 'apply' failing only in Heroku CI/CD - error in converting sdl to metadata #6441
Comments
I had the same error. I fixed it by ensuring the Hasura CLI version was the same as the Hasura GraphQL Engine. |
@domsim1 Thanks for the response! I'm currently on Hasura's paid cloud-hosted offering - and when I run the apply in Heroku's build step, it does indeed compare CLI version vs. server - showing a difference:
Although the versions are different, I get the same version difference when I run the exact command locally, where the apply works fine. There's also no CLI version Still stumped here - anything else you'd recommend trying? |
So, after another day, have made some discoveries:
My best guess: it's related to permissions or context differences in the build process compared to after deploy. Ideally would like to fix the issue in the context of the Heroku build process, vs settings up Github actions, Dockerizing, etc Details:
package.json:
hasura-apply.sh (previously had it installed as a devDependency, but opted to switch to global for debugging purposes)
|
Solved! Heroku's build process actually sets Full working script:
Huge thanks to @scriptonist for the support - keep up the good work!! |
I'm attempting to simply use the Hasura CLI during the build process to apply the metadata to my Hasura Cloud instance, e.g:
This is working perfectly fine on my machine, but failing on Heroku (right after the message about
cli-ext
plugin being installed:I have read through all issues related to sdl/CI/metadata/CLI, made sure to set
HASURA_GRAPHQL_CLI_ENVIRONMENT=default
, etc. but still can't get it to work. I was also unable to find any issues that referenced Exit Status 4, nor was I able to trace it down in the CLI source code.Any ideas? Thanks in advance!
The text was updated successfully, but these errors were encountered: