I've created a repo to reproduce the bug: https://github.com/maxcan/temp-hasura-console-bug-repro.
Versions:
Steps to reproduce:
docker-compose uphasura init --endpoint http://localhost:9080/v1alpha1/graphqlpg_dump -p 9432 -h localhost -U postgres > public-schema.sql% hasura metadata export
Error: cannot create migrate instance: invalid character 'N' looking for beginning of value
Note that hitting http://localhost:9693/apis/migrate/settings causes the same error which blocks using the
console launched by hasura console
Hello @maxcan,
Hasura CLI takes the endpoint as the server endpoint, not the v1aplha1/graphql one.
You can edit the config.yaml file and change endpoint to http://localhost:9080
Then metadata export should work.
@shahidhk worked like a charm, thanks!
Now that I realize that, the docs do show that the endpoint should just be the server so my mistake.
Most helpful comment
Hello @maxcan,
Hasura CLI takes the endpoint as the server endpoint, not the
v1aplha1/graphqlone.You can edit the
config.yamlfile and change endpoint tohttp://localhost:9080Then
metadata exportshould work.