dataall icon indicating copy to clipboard operation
dataall copied to clipboard

GraphQL server breaks when introspection is disabled

Open AmineIzanami opened this issue 2 years ago • 1 comments

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

AmineIzanami avatar Jul 28 '22 10:07 AmineIzanami

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.

github-actions[bot] avatar Aug 27 '22 12:08 github-actions[bot]