# Amazon onebox returning 404

**URL:** https://meta.discourse.org/t/amazon-onebox-returning-404/35077
**Category:** Support
**Created:** [October 29, 2015, 10:15pm UTC](https://meta.discourse.org/t/amazon-onebox-returning-404/35077 "2015-10-29T22:15:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [October 29, 2015, 10:15pm UTC](https://meta.discourse.org/t/amazon-onebox-returning-404/35077/1 "2015-10-29T22:15:33Z")

</div>

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 the code where it performs a fetch of the url.

My production machine is hosted on DO, in case that’s relevant.

---

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [October 30, 2015, 12:19am UTC](https://meta.discourse.org/t/amazon-onebox-returning-404/35077/2 "2015-10-30T00:19:26Z")

</div>

I should also add that the other oneboxes I’ve tested are working fine on my production system, including Twitter and Youtube.

---

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [November 4, 2015, 10:10pm UTC](https://meta.discourse.org/t/amazon-onebox-returning-404/35077/4 "2015-11-04T22:10:05Z")

</div>

Follow up: I just updated to the latest commit of discourse-affiliate, and this has now disappeared.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 4, 2015, 10:17pm UTC](https://meta.discourse.org/t/amazon-onebox-returning-404/35077/5 "2015-11-04T22:17:41Z")

</div>

Sorry about that, there was a bug that was breaking amazon oneboxes… It’s fixed now.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 4, 2015, 10:17pm UTC](https://meta.discourse.org/t/amazon-onebox-returning-404/35077/6 "2015-11-04T22:17:42Z")

</div>


