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

fix the introspection query for an empty keyspace #949

Merged
merged 2 commits into from
May 13, 2021

Conversation

tomekl007
Copy link
Contributor

No description provided.

Copy link
Contributor

@ivansenic ivansenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect.

The playground unfortunately shows:

{
  "error": "Response not successful: Received status code 404"
}

although we send quite a nice message back:

{"errors":[{"message":"Unknown keyspace 'yourKeyspace'"}]}

Can it be that something is missed here, I usually get very good error messages in the playground when using the GQL?

@tomekl007
Copy link
Contributor Author

Perfect.

The playground unfortunately shows:

{
  "error": "Response not successful: Received status code 404"
}

although we send quite a nice message back:

{"errors":[{"message":"Unknown keyspace 'yourKeyspace'"}]}

Can it be that something is missed here, I usually get very good error messages in the playground when using the GQL?

I think that's expected behavior.
When querying for non-existing keyspace:
Screenshot 2021-05-13 at 13 57 47
When querying for existing empty keyspace:
Screenshot 2021-05-13 at 13 57 54

So both situations look ok.

@tomekl007 tomekl007 merged commit ff335bb into master May 13, 2021
@tomekl007 tomekl007 deleted the cql_first_fix_post_with_empty_tables branch May 13, 2021 17:17
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.

With empty tables POST to /graphql/keyspace fails
3 participants