dataall
dataall copied to clipboard
GraphQL server breaks when introspection is disabled
Describe the bug
Disabling GraphQL Introspection in local.graphql.server.py
or api_handler.py
fail with error
[ERROR] TypeError: can only concatenate tuple (not "list") to tuple
Traceback (most recent call last):
File "/home/app/api_handler.py", line 137, in handler
success, response = graphql_sync(
File "/home/app/ariadne/graphql.py", line 153, in graphql_sync
validation_errors = validate_query(
File "/home/app/ariadne/graphql.py", line 341, in validate_query
supplemented_rules = specified_rules + list(rules)
This is related to https://github.com/mirumee/ariadne/issues/769
Setting ariadne==0.15.0 in backend/requirements.txt fixed the issue.
How to Reproduce
Set introspection to False in backend/api_handler.py:
success, response = graphql_sync(
schema=executable_schema, data=query, context_value=app_context, introspection = False
)
Expected behavior
GraphQL responses back to the frontend
OS
Linux
Python version
3.8
AWS data.all version
v1.0.0
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 7 days it will automatically be closed.