Skip to content

UnicodeDecodeError in format_error #216

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
chinskiy opened this issue Nov 7, 2018 · 1 comment
Closed

UnicodeDecodeError in format_error #216

chinskiy opened this issue Nov 7, 2018 · 1 comment

Comments

@chinskiy
Copy link
Contributor

chinskiy commented Nov 7, 2018

Greetings!
After upgrading from

graphene                           2.0.1
graphene-django                    2.0.0
graphql-core                       2.0

to

graphene                           2.1.3
graphene-django                    2.2.0
graphql-core                       2.1

on python 2 I faced with UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) issue when execute smth like

from graphene_django.views import GraphQLView

GraphQLView.format_error(error)

when error has non-ASCII characters like Ошибка

And seems like backward incompatibility appears after this change(found few similar issues on GH with six.text_type)

If you agree that this is a bug I will try to provide fix for it :)

@chinskiy
Copy link
Contributor Author

close this cause fixed via #223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant