# Error calling connector: Status code: undefined. Message: Unexpected API Error: ECONNABORTED - timeout of 60000ms exceeded

**URL:** <https://discuss.elastic.co/t/error-calling-connector-status-code-undefined-message-unexpected-api-error-econnaborted-timeout-of-60000ms-exceeded/383621>\
**Category:** Elastic Security\
**Created:** [November 24, 2025, 1:57pm UTC](https://discuss.elastic.co/t/error-calling-connector-status-code-undefined-message-unexpected-api-error-econnaborted-timeout-of-60000ms-exceeded/383621 "2025-11-24T13:57:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juancamiloll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juancamiloll/32/110326_2.png) [@juancamiloll](https://discuss.elastic.co/u/juancamiloll)\
**Post date:** [November 24, 2025, 1:57pm UTC](https://discuss.elastic.co/t/error-calling-connector-status-code-undefined-message-unexpected-api-error-econnaborted-timeout-of-60000ms-exceeded/383621/1 "2025-11-24T13:57:49Z")

</div>

Hello, I am receiving this error message. Do you have any idea how I can diagnose it?

I have already deleted the connector and created it again, but the problem persists.

> _Error calling connector: Status code: undefined. Message: Unexpected API Error: ECONNABORTED - timeout of 60000ms exceeded_

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

---

<div class="post-metadata">

**Author:** ![Dhrumil\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhrumil_patel/32/106454_2.png) [@Dhrumil\_Patel](https://discuss.elastic.co/u/Dhrumil_Patel)\
**Post date:** [December 1, 2025, 1:54pm UTC](https://discuss.elastic.co/t/error-calling-connector-status-code-undefined-message-unexpected-api-error-econnaborted-timeout-of-60000ms-exceeded/383621/2 "2025-12-01T13:54:19Z")

</div>

Hello! A few clarifying questions so we can get to the bottom of this issue:

1. Are you using Elastic Cloud or self-managed?
2. Which connector type is configured for this model? (“OpenAI”, “OpenAI compatible”, “Azure OpenAI”, or a custom connector.)
3. When you hit “Test connector” in Stack Management → Connectors for this OpenAI connector, does it succeed or return the same `ECONNABORTED`?
4. Does the connector return results if you ask different security question (what happens if you reduce the prompt size?)?

---

<div class="post-metadata">

**Author:** ![juancamiloll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juancamiloll/32/110326_2.png) [@juancamiloll](https://discuss.elastic.co/u/juancamiloll)\
**Post date:** [December 5, 2025, 1:04pm UTC](https://discuss.elastic.co/t/error-calling-connector-status-code-undefined-message-unexpected-api-error-econnaborted-timeout-of-60000ms-exceeded/383621/3 "2025-12-05T13:04:52Z")

</div>

Hello, thank you for responding.

1. Self-managed

2. OpenAI

3. Image attached

4. Does not respond to any type of question

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

I went to [https://platform.openai.com/settings/organization/api-keys](https://platform.openai.com/settings/organization/api-keys) and the API is active. I even deleted it and recreated it with another model, but I got the same result

Could it be related to the model tokens? I remember that I made a $5 deposit with the cheapest model in order to test it. At first it worked, but then suddenly it stopped working.

When I go to Billing [https://platform.openai.com/settings/organization/billing/overview](https://platform.openai.com/settings/organization/billing/overview), I see that I still have $4.44 available.

The only thing that comes to mind is that if this expires monthly, it could be the cause. Otherwise, I have no idea what the cause of the error is or how to diagnose it.

---

<div class="post-metadata">

**Author:** ![juancamiloll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juancamiloll/32/110326_2.png) [@juancamiloll](https://discuss.elastic.co/u/juancamiloll)\
**Post date:** [December 5, 2025, 7:47pm UTC](https://discuss.elastic.co/t/error-calling-connector-status-code-undefined-message-unexpected-api-error-econnaborted-timeout-of-60000ms-exceeded/383621/4 "2025-12-05T19:47:33Z")

</div>

With this command, I was able to identify the problem. It seems that the firewall is blocking it.

curl -v --connect-timeout 5 [https://api.openai.com/v1/models](https://api.openai.com/v1/models)

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

tail -1000 /var/log/kibana/kibana.log |grep -i "gpt"

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

I must request permissions from the firewall administrator so that the Kibana server can reach [api.openai.com](http://api.openai.com).
