# Issue with Creating Annotations in Elastic Observability Serverless 502 response

**URL:** <https://discuss.elastic.co/t/issue-with-creating-annotations-in-elastic-observability-serverless-502-response/378441>\
**Category:** APM\
**Tags:** ui\
**Created:** [May 22, 2025, 9:18pm UTC](https://discuss.elastic.co/t/issue-with-creating-annotations-in-elastic-observability-serverless-502-response/378441 "2025-05-22T21:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khaled\_Muamar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaled_muamar/32/143295_2.png) [@Khaled\_Muamar](https://discuss.elastic.co/u/Khaled_Muamar)\
**Post date:** [May 22, 2025, 9:18pm UTC](https://discuss.elastic.co/t/issue-with-creating-annotations-in-elastic-observability-serverless-502-response/378441/1 "2025-05-22T21:18:13Z")

</div>

We're currently using **Elastic Observability (serverless)** and encountering an issue when calling the **Create Annotation API**.

Despite the annotation eventually being created, the API call returns a **502 Bad Gateway** response with the following message:

```auto
{ ok: false, message: 'backend closed connection' }

```

Additional details:

- The 502 response is received **after a long wait**.
- The annotation does appear to be created **successfully after some time** , even though the API call fails.

Has anyone else experienced this? Is this expected behaviour in the serverless environment, or could this indicate a backend issue?

Also facing the same issue by creating an annotation from the UI

Any insights or suggestions would be appreciated.

---

<div class="post-metadata">

**Author:** ![lahsivjar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lahsivjar/32/101451_2.png) [@lahsivjar](https://discuss.elastic.co/u/lahsivjar)\
**Post date:** [May 23, 2025, 3:32pm UTC](https://discuss.elastic.co/t/issue-with-creating-annotations-in-elastic-observability-serverless-502-response/378441/2 "2025-05-23T15:32:16Z")

</div>

Hey @Khaled_Muamar ,

> [[Observability] [Annotation] Creating annotation takes long time on Serverless · Issue #196067 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/196067)

The issue seems related to Kibana, I found the above github issue related to your problem.
