# Failed sending events! DOMException: The user aborted a request

**URL:** <https://discuss.elastic.co/t/failed-sending-events-domexception-the-user-aborted-a-request/336257>\
**Category:** APM\
**Tags:** rum\
**Created:** [June 16, 2023, 7:19pm UTC](https://discuss.elastic.co/t/failed-sending-events-domexception-the-user-aborted-a-request/336257 "2023-06-16T19:19:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thiago\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago_medeiros/32/119081_2.png) [@Thiago\_Medeiros](https://discuss.elastic.co/u/Thiago_Medeiros)\
**Post date:** [June 16, 2023, 7:19pm UTC](https://discuss.elastic.co/t/failed-sending-events-domexception-the-user-aborted-a-request/336257/1 "2023-06-16T19:19:16Z")

</div>

I have APM and RUM configured as documentation says, and Vue in the frontend.

APM Server version: 8.8.1

This is my whole apm-server.yml:

```auto
  host: 0.0.0.0:8200

output.elasticsearch:
  hosts:
    - elasticsearch:9200
  protocol: "https"
  username: "elastic"
  password: "my-pass"
  ssl.verification_mode: none
apm-server.rum:
  enabled: true
  allow-origins: ["*"]
  allow-headers: ["*"]
  idle_timeout: 60s # added this by myself
apm-server.auth.anonymous.rate_limit.event_limit: 300
apm-server.auth.anonymous.rate_limit.ip_limit: 1000

```

RUM in Vue:  
 ![Screen Shot 2023-06-16 at 16.13.28](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ae9b72d9320d4e319d038fcf14c0e2bd635d6f1.png)

But in the browser I'm seeing this:

 ![Screen Shot 2023-06-16 at 16.08.23](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a46f0f711d33b5fd6b2533456289f341ba4e009e.png)

 ![Screen Shot 2023-06-16 at 16.09.05](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3b634d81335470ebb03321522efa2adbe9682f3c.png)

 ![Screen Shot 2023-06-16 at 16.09.15](https://us1.discourse-cdn.com/elastic/original/3X/5/5/5566e6d060b879aec22202db1d79df5387b72714.png)

Just to add as much information as needed, the console warn points to a request from Vue.. but the request works correctly:

 ![Screen Shot 2023-06-16 at 16.17.21](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42b594564d51776b36c153f29fe1a9bb0f2dbb94.png)

This is the same error from this topic [here](https://discuss.elastic.co/t/elastic-apm-intake-v2-rum-events-requests-cancelled/315137), I followed the suggestions but did not fixed.

There is a way to increase the idle time of RUM?  
I tried this: `apm-server.rum.idle_timeout: 60s`, but as shown in the third image it still waiting just 10 seconds (just to make sure it is not related to resources)

And of course, any insight about this case will be helpful

---

<div class="post-metadata">

**Author:** ![Alberto\_Delgado](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alberto_delgado/32/98488_2.png) [@Alberto\_Delgado](https://discuss.elastic.co/u/Alberto_Delgado)\
**Post date:** [June 19, 2023, 8:00am UTC](https://discuss.elastic.co/t/failed-sending-events-domexception-the-user-aborted-a-request/336257/2 "2023-06-19T08:00:00Z")

</div>

Hi @Thiago_Medeiros,

Thanks for reaching out!

--

Let's try a few things:

1. What does happen if you go to the Chrome console and execute: `fetch('http://172.20.0.6:8200')`. Is the request timing out as well?
2. What does happen if you open a new tab with `http://172.20.0.6:8200` as the URL? What do you see?
3. What do you see in the APM server [logs](https://www.elastic.co/guide/en/apm/guide/current/enable-apm-server-debugging.html)?
4. Question: Are you using the standalone APM server or the [APM integration](https://www.elastic.co/guide/en/apm/guide/current/upgrade-to-apm-integration.html)?

Thanks,  
Alberto

---

<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:** [July 17, 2023, 8:00am UTC](https://discuss.elastic.co/t/failed-sending-events-domexception-the-user-aborted-a-request/336257/3 "2023-07-17T08:00:58Z")

</div>

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