# APM Rum error code 400, data decoding error: gzip: invalid header

**URL:** <https://discuss.elastic.co/t/apm-rum-error-code-400-data-decoding-error-gzip-invalid-header/360923>\
**Category:** APM\
**Tags:** rum\
**Created:** [June 6, 2024, 7:00am UTC](https://discuss.elastic.co/t/apm-rum-error-code-400-data-decoding-error-gzip-invalid-header/360923 "2024-06-06T07:00:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [June 6, 2024, 9:14am UTC](https://discuss.elastic.co/t/apm-rum-error-code-400-data-decoding-error-gzip-invalid-header/360923/2 "2024-06-06T09:14:09Z")

</div>

Hi @Casper_Thrane,

Can you confirm which version of the agent you are using? Also can you share the Elastic `npm` imports you are using in the project (both the agent and Vue extension)?

I would double check you're using the [Elastic RUM agent](https://www.elastic.co/guide/en/apm/agent/rum-js/5.x/index.html) and not the [Elastic Node.js APM agent](https://www.elastic.co/guide/en/apm/agent/nodejs/current/index.html). I found a [similar issue here](https://discuss.elastic.co/t/zlib-invalid-header-error-in-node-js-apm-agent/305616) which was down to using the wrong agent in the app.

Let us know!

---

_[View the full topic](https://discuss.elastic.co/t/apm-rum-error-code-400-data-decoding-error-gzip-invalid-header/360923)._
