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

[Bug]: Export command fails to export the graphql schema #1542

Closed
1 task done
abhishekkumams opened this issue Jun 22, 2023 · 4 comments · Fixed by #2375
Closed
1 task done

[Bug]: Export command fails to export the graphql schema #1542

abhishekkumams opened this issue Jun 22, 2023 · 4 comments · Fixed by #2375
Assignees
Labels
bug Something isn't working cri Customer Reported issue
Milestone

Comments

@abhishekkumams
Copy link
Contributor

What happened?

Even when the engine is started, dab export fails to export the graphql schema file.

How to reproduce?

  1. Use the dab-config.Mssql.json file update the connection string accordingly.
  2. run the command
dab export --graphql -o ./schema --config dab-config.Mssql.json
  1. Error message is not helpful, it just mentions it failed to export schema file.

Version

running from main

What database are you using?

Azure SQL

What hosting model are you using?

Local (including CLI)

Which API approach are you accessing DAB through?

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@abhishekkumams abhishekkumams added bug Something isn't working triage issues to be triaged labels Jun 22, 2023
@seantleonard
Copy link
Contributor

@abhishekkumams is this still an issue? thought was fixed at some point. if fixed, please associate PR workitem and close.

@seantleonard seantleonard removed the triage issues to be triaged label Feb 8, 2024
@Greven145
Copy link

I was having the same issue and discovered you need to run the export command while the service is running. I was testing this locally and kept getting the above error because I could either execute the command or run dab start. Running dab start, then opening another terminal and running the export command worked just fine.

@seantleonard seantleonard added the cri Customer Reported issue label Apr 19, 2024
@seantleonard seantleonard added this to the 1.1rc milestone Apr 29, 2024
@seantleonard
Copy link
Contributor

@Greven145 can you share the command you used to attempt to get the schema exported?

I was able to get a schema exported without manually starting a separate instance of dab running. (dab export launches its own instance of dab to get the schema, you shouldn't be required to do so separately).

dab export --graphql -o "C:\dabtest\schema_drop" --config "C:\dabtest\dab-config.json"

Note:

  • The referenced config must be valid (valid connection string, etc.)
  • You must also include --graphql. I observed that export fails if that is not provided.

@seantleonard seantleonard modified the milestones: 1.1rc, 1.2rc May 6, 2024
@seantleonard
Copy link
Contributor

Dab engine is expected to be started temporarily to run GraphQL schema generation to provide a file to dab CLI export. Unless this isn't functioning in a specific circumstance, I tested this and it working as designed.

@Aniruddh25 Aniruddh25 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
@abhishekkumams abhishekkumams mentioned this issue Sep 10, 2024
2 tasks
@seantleonard seantleonard modified the milestones: 1.2, 1.3 Sep 10, 2024
@seantleonard seantleonard reopened this Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cri Customer Reported issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants