# Clone api Bad Gateway error

**URL:** <https://discuss.elastic.co/t/clone-api-bad-gateway-error/348604>\
**Category:** Elasticsearch\
**Created:** [December 5, 2023, 2:27am UTC](https://discuss.elastic.co/t/clone-api-bad-gateway-error/348604 "2023-12-05T02:27:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna94](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna94/32/65966_2.png) [@Krishna94](https://discuss.elastic.co/u/Krishna94)\
**Post date:** [December 5, 2023, 2:27am UTC](https://discuss.elastic.co/t/clone-api-bad-gateway-error/348604/1 "2023-12-05T02:27:54Z")

</div>

Hi team,  
I tried to do a reindexing of my data but its taking more than 10 days so I tried to clone my index which is of 816GB and when I run clone api I am getting the following error,

```auto
{"statusCode":502,"error":"Bad Gateway","message":"Client request timeout"}

```

below is the command that I am using to clone.

```auto
PUT index/_clone/index-cloned?master_timeout=3600s&timeout=3600s

```

Please help.

---

<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:** [January 2, 2024, 2:27am UTC](https://discuss.elastic.co/t/clone-api-bad-gateway-error/348604/2 "2024-01-02T02:27:59Z")

</div>

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