# Getting error {“ok”:false,”message”:”backend closed connection”} when POST request

**URL:** <https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 17, 2022, 3:54pm UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219 "2022-11-17T15:54:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![StevenMartins](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@StevenMartins](https://discuss.elastic.co/u/StevenMartins)\
**Post date:** [November 17, 2022, 3:54pm UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/1 "2022-11-17T15:54:30Z")

</div>

Hi,

After a few minutes (5/10min) of POST requests, I get this error : **{“ok”:false,”message”:”backend closed connection”}** in my console but I do not see error in App Search API logs... How is it possible ?  
What can be the cause of this error ?

_Some POST requests arriving before error:_

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9e0785e00af067a578923216b6a3e8b7ae8e107d.png)

_App search v8.5.0_

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [November 17, 2022, 5:55pm UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/2 "2022-11-17T17:55:57Z")

</div>

Hi @StevenMartins ,

It's hard to tell without more information, but my guess would be, the message ("backend closed connection") didn't come from the App Search API. The error might have happened before reaching Enterprise Search server, somewhere between the proxy server and the Enterprise Search server.

Are you running on Cloud? In the admin console, you should have "Enterprise Search logs" and "Proxy logs". The records there might tell you more about what's going on.

---

<div class="post-metadata">

**Author:** ![StevenMartins](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@StevenMartins](https://discuss.elastic.co/u/StevenMartins)\
**Post date:** [November 18, 2022, 3:22pm UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/3 "2022-11-18T15:22:12Z")

</div>

It's a possibility.  
I'm using an elastic cloud deploiement and Talend. My talend job post many requests on App Search engine.  
I see this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/1/114f7f79a2baaa6cd58040794f08966e8ac5364a.png)  
and  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/8/d812581cd9b838e087c7b2242b822e97fcb39e3c.png)  
I don't find "Enterprise Search logs" and "Proxy logs", where should I go ?

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [November 18, 2022, 10:18pm UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/4 "2022-11-18T22:18:28Z")

</div>

You're right, in the Cloud console all you have is "Logs and metrics". You'd have to contact support to help you with proxy logs.

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [November 23, 2022, 9:49pm UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/6 "2022-11-23T21:49:22Z")

</div>

@StevenMartins The "service unavailable" message suggests that the Enterprise Search instance is not able to handle the incoming requests, because something is putting too much pressure on the server, or the configured capacity is not sufficient.

I would advise to restart the deployment, and if that doesn't help, contact support, so they can open a ticket to investigate the problem with your deployment more closely.

---

<div class="post-metadata">

**Author:** ![StevenMartins](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@StevenMartins](https://discuss.elastic.co/u/StevenMartins)\
**Post date:** [November 24, 2022, 7:57am UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/7 "2022-11-24T07:57:22Z")

</div>

I view 503 Service Unavailable, but there is a 502 "[...] read: connection reset by peer" before and I there are nothing in metrics that confirms insufficient capacity

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/c/ccf2c1d45248f05b18edfdd8adffc5c91f770e4a.png)

I have already sent a support request and I wait an answer

---

<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:** [December 22, 2022, 7:57am UTC](https://discuss.elastic.co/t/getting-error-ok-false-message-backend-closed-connection-when-post-request/319219/8 "2022-12-22T07:57:28Z")

</div>

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