# Issue with elastic rum agent

**URL:** <https://discuss.elastic.co/t/issue-with-elastic-rum-agent/362189>\
**Category:** Elastic Observability\
**Created:** [June 28, 2024, 8:33am UTC](https://discuss.elastic.co/t/issue-with-elastic-rum-agent/362189 "2024-06-28T08:33:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ehsan\_Eskandary](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ehsan_eskandary/32/126985_2.png) [@Ehsan\_Eskandary](https://discuss.elastic.co/u/Ehsan_Eskandary)\
**Post date:** [June 28, 2024, 8:33am UTC](https://discuss.elastic.co/t/issue-with-elastic-rum-agent/362189/1 "2024-06-28T08:33:02Z")

</div>

Hey guys  
hope you are doing great  
i am having an issue with elastic rum agent.  
i have a next.js application and i added the agent config to my \_app.tsx:

```auto
import { init as initApm } from '@elastic/apm-rum'
var apm = initApm({
  serviceName: 'test',

  serverUrl: 'https://10.1.36.159:8200',

  serviceVersion: '',

  environment: 'testenv'
})

```

after the last import.  
also have the dependency installed but when i log the agent object with console it reports this :

```auto
ApmBase {
  _disable: true,
  serviceFactory: ServiceFactory { instances: {}, initialized: false },
  _initialized: false
}

```

obviously its not disabled .  
so what could be the issue ? like do i have to do anything else beside this?  
i followed the official document.  
thanks inadvance

---

<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:** [July 1, 2024, 8:37am UTC](https://discuss.elastic.co/t/issue-with-elastic-rum-agent/362189/2 "2024-07-01T08:37:48Z")

</div>

Hi @Ehsan_Eskandary,

Welcome to the community! Can you share which version of the RUM agent you are using? Are there any error or warning messages in the console logs at all?

I also assume that your Elastic APM server is available at the `serverUrl`? Can you also confirm you have enabled the APM server on your cluster and you're not receiving any messages?

Let us know!
