# Getting an error when I use multiple processes with python

**URL:** <https://discuss.elastic.co/t/getting-an-error-when-i-use-multiple-processes-with-python/230128>\
**Category:** 中文提问与讨论\
**Created:** [April 28, 2020, 9:58am UTC](https://discuss.elastic.co/t/getting-an-error-when-i-use-multiple-processes-with-python/230128 "2020-04-28T09:58:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KimTaenggu](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@KimTaenggu](https://discuss.elastic.co/u/KimTaenggu)\
**Post date:** [April 28, 2020, 9:58am UTC](https://discuss.elastic.co/t/getting-an-error-when-i-use-multiple-processes-with-python/230128/1 "2020-04-28T09:58:55Z")

</div>

I get elasticsearch.exceptions.SerializationError when using multiple processes with python. The usual string result should be like `{"took":3,"timed_out":false.....}`. But when I use multiple processes with python, the result will contains `...HTTP/1.1 200 OK\r\ncontent-type: application/json; charset=UTF-8\r\n...`. This result can not being parsed by json, and throwed the Exception.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 26, 2020, 9:58am UTC](https://discuss.elastic.co/t/getting-an-error-when-i-use-multiple-processes-with-python/230128/2 "2020-05-26T09:58:55Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
