graphene
graphene copied to clipboard
graphiql interface is blank when deployed on AWS lambda + gateway API and queried with /graphql
- What is the current behavior?
- Get blank screen when I hit my
/graphqlAWS gateway API hooked to AWS lambda running Django + graphene. I deployed using zappa

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

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?
@opqpop What errors do you see in the browser console? Have you setup static file hosting? (https://docs.djangoproject.com/en/3.2/howto/static-files/deployment/) WhiteNoise is a good option for that: http://whitenoise.evans.io/en/stable/