# RUM APM sourcemaps not displaying in kibana

**URL:** <https://discuss.elastic.co/t/rum-apm-sourcemaps-not-displaying-in-kibana/385995>\
**Category:** APM\
**Tags:** rum\
**Created:** [April 22, 2026, 10:31am UTC](https://discuss.elastic.co/t/rum-apm-sourcemaps-not-displaying-in-kibana/385995 "2026-04-22T10:31:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MathDP](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MathDP](https://discuss.elastic.co/u/MathDP)\
**Post date:** [April 22, 2026, 10:31am UTC](https://discuss.elastic.co/t/rum-apm-sourcemaps-not-displaying-in-kibana/385995/1 "2026-04-22T10:31:33Z")

</div>

Hello everone, I am trying to setup frontend sourcemaps for better error reporting in kibana APM. I tried many things but nothing seems to work and the errors keep being reported with the production filenames instead of the source names. Here's what I have done maybe someone will find my mistake or point where I should be looking? I have followed this guide [Create and upload source maps (RUM) | Elastic Docs](https://www.elastic.co/docs/solutions/observability/apm/apm-agents/create-upload-source-maps-rum)

For testing purposes I created a "dummy" error in the application and made sure it was correctly reported:

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

I then uploaded the 2 concerned chunks with this curl:

```auto
curl -X POST --insecure "$KIBANA_SOURCEMAP_ENDPOINT" \
          -H "Content-Type: multipart/form-data" \
          -H "kbn-xsrf: true" \
          -H "Authorization: ApiKey $KIBANA_API_KEY" \
          -F "service_name=x-frontend" \
          -F "service_version=1.0" \
          -F "bundle_filepath=chunk-RN6WJJYZ.js" \
          -F "sourcemap=@./chunk-RN6WJJYZ.js.map"

```

Making sure that the metadata from the error show consistent service name and version

Disclaimer: the X both in the curl service\_name and the image are exactly the same value, hidden to hide the application name.

I have then validated that the sourcemaps were correctly stored using

```auto
curl -X GET--insecure "$KIBANA_SOURCEMAP_ENDPOINT" \
          -H "kbn-xsrf: true" \
          -H "Authorization: ApiKey $KIBANA_API_KEY"

```

Which returned

```json
{
  "artifacts": [
    {
      "type": "sourcemap",
      "identifier": "x-frontend-1.0",
      "relative_url": "/api/fleet/artifacts/x-frontend-1.0/64dbd6a66d6f47d34cad54cc3a196814c11348da0ff709acc7c62e978b505254",
      "body": {
        "serviceName": "x-frontend",
        "serviceVersion": "1.0",
        "bundleFilepath": "chunk-5NR7QMPW.js",
        "sourceMap": {
          "version": 3,
          "sources": ["..."],
          "sourcesContent": ["..."],
          "mappings": "...",
          "names": ["..."]
        }
      },
      "created": "2026-04-16T13:27:39.084Z",
      "id": "apm:x-frontend-1.0-64dbd6a66d6f47d34cad54cc3a196814c11348da0ff709acc7c62e978b505254",
      "compressionAlgorithm": "zlib",
      "decodedSha256": "64dbd6a66d6f47d34cad54cc3a196814c11348da0ff709acc7c62e978b505254",
      "decodedSize": 124121,
      "encodedSha256": "043f0eef04e776b75a40ed4665efaca7ab76601708906d71a5091206527c7748",
      "encodedSize": 28917,
      "encryptionAlgorithm": "none",
      "packageName": "apm"
    },
    {
      "type": "sourcemap",
      "identifier": "x-frontend-1.0",
      "relative_url": "/api/fleet/artifacts/x-frontend-1.0/f234fb0d0952addf110852ce9cb07e39fd40fe0471c6c579856761d8348d9ed1",
      "body": {
        "serviceName": "x-frontend",
        "serviceVersion": "1.0",
        "bundleFilepath": "chunk-RN6WJJYZ.js",
        "sourceMap": {
          "version": 3,
          "sources": ["..."],
          "sourcesContent": ["..."],
          "mappings": "...",
          "names": ["..."],
          "x_google_ignoreList": ["..."]
        }
      },
      "created": "2026-04-16T13:27:44.383Z",
      "id": "apm:x-frontend-1.0-f234fb0d0952addf110852ce9cb07e39fd40fe0471c6c579856761d8348d9ed1",
      "compressionAlgorithm": "zlib",
      "decodedSha256": "f234fb0d0952addf110852ce9cb07e39fd40fe0471c6c579856761d8348d9ed1",
      "decodedSize": 1544257,
      "encodedSha256": "67e8f5466814e3adacb8a0005cb51147fb8e56e0647910f4af7cd794006e338b",
      "encodedSize": 351572,
      "encryptionAlgorithm": "none",
      "packageName": "apm"
    }
  ]
}

```

I have also tried to upload the sourcemap using absolute URLs using the exact file paths on the server but that did not change anything.

I have also tried waiting different intervals after the upload of the sourcemaps to trigger the error again, 5 mins, 1hour, 12 hour...Because, we never know 🤷‍♂️

Any idea where I should be looking to troubleshoot this?

---

<div class="post-metadata">

**Author:** ![MathDP](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MathDP](https://discuss.elastic.co/u/MathDP)\
**Post date:** [April 22, 2026, 10:32am UTC](https://discuss.elastic.co/t/rum-apm-sourcemaps-not-displaying-in-kibana/385995/2 "2026-04-22T10:32:40Z")

</div>

Had to remove the screenshot for the metadata:

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

---

<div class="post-metadata">

**Author:** ![hegerchr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hegerchr/32/147351_2.png) [@hegerchr](https://discuss.elastic.co/u/hegerchr)\
**Post date:** [May 20, 2026, 7:42am UTC](https://discuss.elastic.co/t/rum-apm-sourcemaps-not-displaying-in-kibana/385995/3 "2026-05-20T07:42:05Z")

</div>

Hi MathDP,

are you using Elastic APM RUM JS, OTel Browser or EDOT Browser to collect and send the telemetry data?

---

<div class="post-metadata">

**Author:** ![MathDP](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MathDP](https://discuss.elastic.co/u/MathDP)\
**Post date:** [May 26, 2026, 6:20am UTC](https://discuss.elastic.co/t/rum-apm-sourcemaps-not-displaying-in-kibana/385995/4 "2026-05-26T06:20:59Z")

</div>

Hello hegerchr, thanks for your interest in my situation!

We are using APM RUM js, throught the @elastic/apm-rum-angular package
