# Links não são oneboxados quando o Sidekiq não está em execução

**URL:** https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490
**Category:** Development
**Created:** [Abril 19, 2019, 6:01pm UTC](https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490 "2019-04-19T18:01:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [Abril 19, 2019, 6:01pm UTC](https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490/1 "2019-04-19T18:01:29Z")

</div>

When creating a topic via the API I find that links aren’t oneboxed.

```bash
curl \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"title": "Sample title here", "raw": "https://twitter.com/SE23life/status/1115640590954377217", "category": 1}' \
  http://localhost:3000/posts.json?api_key=[key]&username=test

```

 ![Screenshot%20from%202019-04-19%2018-59-01](https://global.discourse-cdn.com/meta/original/3X/d/c/dc7fee11330521d93b5654a6a93d4734d9d3d92e.png)

`Cog Menu > Rebuild HTML` doesn’t seem to have any effect

Editing the post on the forum and adding some additional text on another line causes the onebox to render

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/0/00fa1e9de7628b083693cc3d8be1e3fc7a46b733.png)

Aside from the oneboxing issue, I’d also like to replicate the “paste URL in title” behaviour via the API (in order to display the link below the topic title). Is this possible somehow?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [Abril 19, 2019, 6:24pm UTC](https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490/2 "2019-04-19T18:24:07Z")

</div>

Are you running sidekiq in your dev environment? Post won’t onebox if you don’t, and it has nothing to do with API usage.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [Abril 19, 2019, 6:25pm UTC](https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490/3 "2019-04-19T18:25:36Z")

</div>

Ah - good suggestion!

I started Sidekiq and the URL oneboxed. Thank you @Falco

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [Abril 19, 2019, 6:25pm UTC](https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490/4 "2019-04-19T18:25:50Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Abril 24, 2019, 2:18am UTC](https://meta.discourse.org/t/links-not-oneboxed-when-sidekiq-isnt-running/115490/5 "2019-04-24T02:18:14Z")

</div>

⚠ Important note ⚠

In dev always use:

```plaintext
bin/unicorn

```

⏫ this runs a sidekiq worker.

```plaintext
bin/unicorn -x

```

⏫ this runs **no sidekiq** worker.
