Skip to content

graphiql interface is blank when deployed on AWS lambda + gateway API and queried with /graphql #1363

@opqpop

Description

@opqpop
  • What is the current behavior?
  • Get blank screen when I hit my /graphql AWS gateway API hooked to AWS lambda running Django + graphene. I deployed using zappa

image

the tail however shows it's giving 200:

$ zappa tail
1630966892874] 98.148.64.63 - - [06/Sep/2021:22:21:32 +0000] "GET /graphql HTTP/1.1" 200 2081 "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Firefox/78.0" 0/2.863

Also the actual graphql requests are confirmed working

If I run it locally, graphiql shows up fine

image

My urls.py file

urlpatterns = [
    ...,
    path("graphql", csrf_exempt(GraphQLView.as_view(graphiql=True))),
]

Not sure if this is a bug. Anyone know if there's anything special I have to do to make graphiql work on AWS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions