Skip to content
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

Ошибка в order-check. #11

Open
antonid08 opened this issue Jun 7, 2017 · 0 comments
Open

Ошибка в order-check. #11

antonid08 opened this issue Jun 7, 2017 · 0 comments

Comments

@antonid08
Copy link

antonid08 commented Jun 7, 2017

Internal Server Error: /kassa/order-check/
Traceback (most recent call last):
"env/local/lib/python2.7/site-packages/django/views/generic/edit.py", line 183, in post
return self.form_valid(form)
File "env/local/lib/python2.7/site-packages/yandex_kassa/views.py", line 126, in form_valid
content = self.get_xml(data)
File "env/local/lib/python2.7/site-packages/yandex_kassa/views.py", line 50, in get_xml
return ElementTree.tostring(elem, 'unicode', 'xml')
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1126, in tostring
ElementTree(element).write(file, encoding, method=method)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 817, in write
self._root, encoding, default_namespace
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 884, in _namespaces
add_qname(tag)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 868, in add_qname
qnames[qname] = encode(qname)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 843, in encode
return text.encode(encoding)
LookupError: unknown encoding: unicode

При тестовом платеже такая штука, боевые не проверял. Python 2.7. Исправляется заменой кодировки в файле с "unicode" на "utf-8"

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