# Amazon onebox fails on my site, but works here

**URL:** <https://meta.discourse.org/t/amazon-onebox-fails-on-my-site-but-works-here/41609>\
**Category:** Bug\
**Created:** [3월 27, 2016, 2:25오전 UTC](https://meta.discourse.org/t/amazon-onebox-fails-on-my-site-but-works-here/41609 "2016-03-27T02:25:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [3월 27, 2016, 2:25오전 UTC](https://meta.discourse.org/t/amazon-onebox-fails-on-my-site-but-works-here/41609/1 "2016-03-27T02:25:35Z")

</div>

I’ve tried adding both `amazon.com` and `www.amazon.com` as whitelisted domains.

I tried to pasted this link and many others from Amazon into a new topic on my site:

```plaintext
http://www.amazon.com/The-Advantage-Organizational-Everything-Business/dp/1491510803

```

When I do, I get the following in Chrome’s dev tools console:

```plaintext
https://www.myforumdomain.com/onebox?url=http%3A%2F%2Fwww.amazon.com%2FThe-Advantage-Organizational-Everything-Business%2Fdp%2F1491510803d&refresh=false
Failed to load resource: the server responded with a status of 404 ()

```

When I paste it here, it works… see?

> **[Advantage, The: Patrick Lencioni, Patrick Lencioni: 9781491510803: Amazon.com:...](https://www.amazon.com/Advantage-Organizational-Health-Everything-Business/dp/1491510803)**
>
> Advantage, The \[Patrick Lencioni, Patrick Lencioni\] on Amazon.com. \*FREE\* shipping on qualifying offers. Advantage, The

I see this other topic referencing a bug fixed before, but that was a while ago:

> [@Amazon onebox returning 404](https://meta.discourse.org/t/amazon-onebox-returning-404/35077):
>
> On my production site, I’m getting 404’s in the oneboxing of every Amazon link I enter. On my dev site, they resolve beautifully. At first I thought this was a conflict with plugins, in particular figured it was likely to be related to discourse-affiliate tacking a tag onto the query string. But it works fine on my dev machine. Any clue on why this would happen? I’ve been trying to trace the code of amazon\_onebox on my dev machine with a debugger to understand the details, but I can’t find th…

---

_[View the full topic](https://meta.discourse.org/t/amazon-onebox-fails-on-my-site-but-works-here/41609)._
