-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'AnonymousObservable' object has no attribute 'errors' #2
Comments
Hello @mlugowska, sorry for delay. Could you show me your route definition of graphql in your urls.py file? |
Hi @dionyself, thanks for sharing your urls.py, the graphene_django_extras package provides two special views that you should use to avoid this error, try this: # urls.py
from graphene_django_extras.views import AuthenticatedGraphQLView, ExtraGraphQLView
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/login/$', django.contrib.auth.views.login),
# Private url
url(r'^graphql', AuthenticatedGraphQLView.as_view(graphiql=True))),
# Public url
# url(r'^graphql', ExtraGraphQLView.as_view(graphiql=True))),
] You can also inherit these views to create your own |
Thanks, the problem is solved. |
I'm still receiving this error. https://github.com/xDHILEx/gdetest/ |
Hi. I need to add subscriptions to my graphene-django project. But I've landed with the following error:
'AnonymousObservable' object has no attribute 'errors'
raised ingraphene_django/views.py", line 164, in get_response
. Have you met this error before? Or do you have any thoughts how can it be resolved?The text was updated successfully, but these errors were encountered: