# Sidekiq workers that sync data to salesforce failing after setting up ruby agent on my app

**URL:** <https://discuss.elastic.co/t/sidekiq-workers-that-sync-data-to-salesforce-failing-after-setting-up-ruby-agent-on-my-app/244100>\
**Category:** APM\
**Tags:** ruby\
**Created:** [August 6, 2020, 10:20pm UTC](https://discuss.elastic.co/t/sidekiq-workers-that-sync-data-to-salesforce-failing-after-setting-up-ruby-agent-on-my-app/244100 "2020-08-06T22:20:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaysan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaysan/32/45310_2.png) [@jaysan](https://discuss.elastic.co/u/jaysan)\
**Post date:** [August 6, 2020, 10:20pm UTC](https://discuss.elastic.co/t/sidekiq-workers-that-sync-data-to-salesforce-failing-after-setting-up-ruby-agent-on-my-app/244100/1 "2020-08-06T22:20:42Z")

</div>

Hello,

After I adding ruby agent on my app, my sidekiq workers that sync data to salesforce are throwing the following exception:

`bad argument (expected URI object or URI string)`

I know the error message is not very helpful. However, I can see my app's metrics in grafana.

When I remove the agent, I don't see above exception.

```
  Version of elastic-apm: 3.8.0
  Ruby version: 2.3.6
  sidekiq (5.2.5)
  sidekiq-ent (1.8.0)
  sidekiq-pro (4.0.5)
  restforce (3.2.0) - used by sidekiq workers to make rest calls to salesforce

```

I know we are using very old version of ruby. Are these versions of elastic apm and ruby compatible?

Any suggestion or feedback would be really appreciated.

---

<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:** [August 27, 2020, 6:20pm UTC](https://discuss.elastic.co/t/sidekiq-workers-that-sync-data-to-salesforce-failing-after-setting-up-ruby-agent-on-my-app/244100/2 "2020-08-27T18:20:45Z")

</div>

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