You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
I playing with GraphQL and I received this exception AttributeError str' object has no attribute 'decode' with python 3.
I'd like to propose distinction between 'str' and 'unicode' in GraphQLView class function parse_body()
GraphQL requests that contain unicode characters fails with the error message 'POST body sent invalid JSON.'
I was able to fix it by adding utf-8 parameter to decode method .
graphqlview.py L132:
request_json = json.loads(request.data.decode('utf-8'))
The text was updated successfully, but these errors were encountered: