Description
- Python version: 3.6
- Operating System: OSX Sierra
Description
When testing the Django Channels examples, I went through some errors:
1: graphql_ws/django_channels.py
file is not on the latest package version. But I downloaded it manually inside the package.
2: I was getting the error "Subscriptions are not allowed. You will need to either use the subscribe function or pass allow_subscriptions=True"
. And, since the GraphQLView
object does not support the allow_subscriptions
parameter, I changed it inside the package to True
(just for testing).
3. After that, I was getting the error Subscription must return Async Iterable or Observable
. Reading this issue, I decided to add 'MIDDLEWARE: []
into the GRAPHENE
settings variable.
4. After that, I started receiving this error: 'AnonymousObservable' object has no attribute 'errors'
. Then I got a little bit frustrated and stop trying 😅
Does anyone have a clue why this is happening?
Thanks!