Skip to content

#1396: raise Fbe::Error with the reason when Fbe::Graph fails to load the schema - #1405

Open
morphqdd wants to merge 2 commits into
zerocracy:masterfrom
morphqdd:1396
Open

morphqdd wants to merge 2 commits into
zerocracy:masterfrom
morphqdd:1396

Conversation

@morphqdd

@morphqdd morphqdd commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Fbe::Graph#client now runs the introspection itself and checks the answer. When there is no data in it, it raises Fbe::Error with the error messages from the response (for a non-200 answer that is the HTTP status), instead of letting the graphql gem fail with KeyError: key not found: "data".

Closes #1396

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

Successfully merging this pull request may close these issues.

Fbe::Graph reports a failed schema load as KeyError: key not found: "data", hiding GitHub's message

1 participant