Skip to content
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

Existing project schemata not pulled on initialisation #101

Closed
MarcelloTheArcane opened this issue Sep 13, 2021 · 1 comment
Closed

Existing project schemata not pulled on initialisation #101

MarcelloTheArcane opened this issue Sep 13, 2021 · 1 comment

Comments

@MarcelloTheArcane
Copy link

At least, I think that's what's happening.

I have an existing project on Nhost that I'm trying to link to with nhost dev, but I get the following error. It seems like it's not recognising the existing tables I have set up (which are in another schema).

Error message:

$ nhost dev

✖ Applying metadata
Error! Command failed: hasura metadata apply --endpoint http://localhost:8080 --admin-secret 123456 --skip-update-check
{"level":"info","msg":"Applying metadata...","time":"2021-09-13T08:14:53+01:00"}
time="2021-09-13T08:14:53+01:00" level=fatal msg="error applying metadata \n{\n  \"internal\": [\n    {\n      \"definition\": {\n        \"schema\": \"quote\",\n        \"name\": \"list\"\n      },\n      \"reason\": \"Inconsistent object: no such table/view exists in source: \\\"quote.list\\\"\",\n      \"name\": \"table quote.list in source default\",\n      \"type\": \"table\"\n    }\n  ],\n  \"path\": \"$.args\",\n  \"error\": \"cannot continue due to inconsistent metadata\",\n  \"code\": \"unexpected\"\n}"

Pretty error JSON:

{
  "internal": [
    {
      "definition": {
        "schema": "quote",
        "name": "list"
      },
      "reason": "Inconsistent object: no such table/view exists in source: \"quote.list\"",
      "name": "table quote.list in source default",
      "type": "table"
    }
  ],
  "path": "$.args",
  "error": "cannot continue due to inconsistent metadata",
  "code": "unexpected"
}
@mrinalwahal
Copy link
Contributor

We have released Nhost v2 since this issue was opened. Please try the latest infra, and if you still face new issues, feel free to open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants