Skip to content

AttributeError while getting results #353

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

Closed
dionyself opened this issue Dec 25, 2017 · 3 comments
Closed

AttributeError while getting results #353

dionyself opened this issue Dec 25, 2017 · 3 comments
Labels

Comments

@dionyself
Copy link

dionyself commented Dec 25, 2017

Hi,
https://github.com/graphql-python/graphene-django/blob/master/graphene_django/views.py#L158-L166
this block of code assumes that the response willbe always an instance of ExecutionResult(), but that's not always true.
I am getting something like:
`if execution_result.errors:
AttributeError: 'AnonymousObservable' object has no attribute 'errors'

Ref:
https://github.com/graphql-python/graphql-core/blob/caa42e8c6785a3db52eb0215813263e2bd8b64f8/graphql/execution/executor.py#L70-L76
`

@mlugowska
Copy link

Have you found any solution how to handle this error?

@ambientlight
Copy link

wonder if graphql-python/graphql-ws#8 (comment) helps

@stale
Copy link

stale bot commented Jun 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 11, 2019
@stale stale bot closed this as completed Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants