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

Restore fails with UnicodeError #6

Closed
jirisembera opened this issue Jan 24, 2020 · 1 comment
Closed

Restore fails with UnicodeError #6

jirisembera opened this issue Jan 24, 2020 · 1 comment

Comments

@jirisembera
Copy link

In case the dump contains non-ASCII characters data restore fails. Encoding the payload to UTF-8 before passing it to requests solves the problem:

r = requests.post(URL+'/write', auth=AUTH, params=params, data=data.encode("UTF-8"))

@roman-vynar
Copy link
Contributor

Fixed by 3789263

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

2 participants