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

"Internal Error: Invalid query plan" error when running tool. #116

Open
abachman opened this issue May 10, 2022 · 0 comments
Open

"Internal Error: Invalid query plan" error when running tool. #116

abachman opened this issue May 10, 2022 · 0 comments

Comments

@abachman
Copy link

abachman commented May 10, 2022

Hi! First, huge thanks for providing this. Already caught an issue for us with graph composition.

I'm running into an error when generating output using the --out option. It runs successfully without the option, but fails with it set. I'm concerned that it may not be producing output for every operation it finds, but I can't tell which operation is causing the issue.

Unset:

$ npx github:@apollosolutions/federation-2-readiness
? Select Graph mygraph
? Select Variant production
✅ Schema composes with Federation v1
✅ Schema composes with Federation v2
? Use the same graphRef? mygraph@production Yes
? Audit Operations in the Last Day
-----------------------------------
✅ Operations audited: 335
🏆 Operations that match: 304
❌ Operations with differences: 31

Add --out <directory> to print reports for each operation.

--out set:

❯ npx github:@apollosolutions/federation-2-readiness --out readiness-output/
? Select Graph mygraph
? Select Variant production
✅ Schema composes with Federation v1
✅ Schema composes with Federation v2
? Use the same graphRef? mygraph@production Yes
? Audit Operations in the Last Day
-----------------------------------
✅ Operations audited: 335
🏆 Operations that match: 304
❌ Operations with differences: 31
Internal Error: Invalid query plan
    at queryPlanToMermaid (file:///Users/me/.npm/_npx/32197df7ba70c1ce/node_modules/@apollosolutions/federation-2-readiness/src/federation/queryPlanToMermaid.js:100:11)
    at AuditCommand.execute (file:///Users/me/.npm/_npx/32197df7ba70c1ce/node_modules/@apollosolutions/federation-2-readiness/src/commands/audit.js:391:15)
    at async AuditCommand.validateAndExecute (/Users/me/.npm/_npx/32197df7ba70c1ce/node_modules/clipanion/lib/advanced/Command.js:73:26)
    at async Cli.run (/Users/me/.npm/_npx/32197df7ba70c1ce/node_modules/clipanion/lib/advanced/Cli.js:222:24)
    at async Cli.runExit (/Users/me/.npm/_npx/32197df7ba70c1ce/node_modules/clipanion/lib/advanced/Cli.js:231:28)
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

1 participant