Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

please fix non UTF-8 surrogateescapes #62

Closed
x0day opened this issue Apr 1, 2019 · 3 comments
Closed

please fix non UTF-8 surrogateescapes #62

x0day opened this issue Apr 1, 2019 · 3 comments

Comments

@x0day
Copy link

x0day commented Apr 1, 2019

It's already fixed in elasticsearch-py, but not in elasticsearch-py-async.

elastic/elasticsearch-py#611
elastic/elasticsearch-py#612
https://github.com/elastic/elasticsearch-py-async/blob/master/elasticsearch_async/transport.py#L201

@x0day x0day changed the title please please fix non UTF-8 surrogateescapes Apr 1, 2019
@x0day
Copy link
Author

x0day commented Apr 4, 2019

also should be fixed in response.

raw_data = yield from response.text()

changes to

raw_data = yield from response.content.read()
raw_data = raw_data.decode('utf-8', errors='surrogatepass')

@sethmlarson
Copy link
Contributor

This is fixed in elasticsearch[async] 7.8.0, see #81 for more information.

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

Successfully merging a pull request may close this issue.

3 participants