# Imgur images not embedding with 429 error

**URL:** https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131
**Category:** Support
**Created:** [April 27, 2023, 11:09pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131 "2023-04-27T23:09:52Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [April 27, 2023, 11:09pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/1 "2023-04-27T23:09:52Z")

</div>

this message appears, does anyone know what it is?

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/2/a/32af966034b1b31314ed25ab9ab748fe1baed0dd.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 27, 2023, 11:24pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/2 "2023-04-27T23:24:49Z")

</div>

That 429 error means that the discourse server has pulled more images from that site than it wants to provide.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [April 28, 2023, 3:05am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/3 "2023-04-28T03:05:51Z")

</div>

What does that mean? How do I fix the problem?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 28, 2023, 3:35am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/4 "2023-04-28T03:35:59Z")

</div>

It means that you need to upload the image from somewhere other than imgur. It is refusing to allow your server to download the file.

You could, for example, upload it directly to discourse rather than using the link to imgur.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [April 28, 2023, 4:30am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/5 "2023-04-28T04:30:03Z")

</div>

So is this a server problem? Because I in other discourse-based forums, imgur is usually embedded via link

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 28, 2023, 5:37am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/6 "2023-04-28T05:37:31Z")

</div>

Your server has downloaded too many images from imgur. Search Google for ‘imgur 429’

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [April 28, 2023, 1:13pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/7 "2023-04-28T13:13:06Z")

</div>

Based on this it appears that the external site is rate limiting requests from a specific Discourse forum?

> [@429 Error could use a better description](https://meta.discourse.org/t/429-error-could-use-a-better-description/111689/2):
>
> The 429 means there’s a rate limit but it’s not always the same rate limit. I would happily merge a more vague description though.

I just started having problems with a 429 error for Imgur oneboxed images on my Discourse instance. But the same links work here:

`https://i.imgur.com/6IXPzY6.png`

 ![](https://global.discourse-cdn.com/meta/original/4X/e/a/7/ea71e1e95059f7329b16c01156c195b46e184c78.png)  
Strangely, without the `.png` part of the link the onebox _does_ appear:

`https://i.imgur.com/6IXPzY6`

[![Imgur](https://global.discourse-cdn.com/meta/original/4X/e/a/7/ea71e1e95059f7329b16c01156c195b46e184c78.png "imgur.com") ](https://imgur.com/6IXPzY6)

I tried adding `https://i.imgur.com` and `https://imgur.com` to `force custom user agent hosts` , but it doesn’t make any difference.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 28, 2023, 2:40pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/8 "2023-04-28T14:40:31Z")

</div>

Hey @rahim123 🙂

@danielabc has also been having that issue with imgur recently, so I’ve slipped your post here to keep the discussion grouped together. 👍

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [April 29, 2023, 1:03pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/9 "2023-04-29T13:03:43Z")

</div>

Did you manage to fix this?

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [April 29, 2023, 1:12pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/10 "2023-04-29T13:12:42Z")

</div>

Nope. It appears that Imgur is rate limiting based on the requesting domain or IP, so the user agent thing can’t fix it, and it looks like we’re simply stuck. This is probably the beginning of the inevitable end after Imgur got bought out by a holding company:

> **[Imgur has been bought by the owner of Kik, Genius, and WorldStarHipHop](https://www.theverge.com/2021/9/28/22697957/imgur-acquisition-medialab-kik-genius-whisper-worldstarhiphop)**
>
> Joining a stable of B-tier internet properties

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [April 29, 2023, 4:44pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/11 "2023-04-29T16:44:02Z")

</div>

@JammyDodger or @danielabc For searchers could you please correct **imugr** to **Imgur** in the title? Also maybe make it more general like: **Imgur images not embedding with 429 error**  
I suspect that there will be lots of other similar questions…

---

<div class="post-metadata">

### Author: ![rashe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rashe/32/304697_2.png) [@rashe](https://meta.discourse.org/u/rashe)
#### Post date: [April 30, 2023, 7:17am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/12 "2023-04-30T07:17:35Z")

</div>

I hope it’s a temporary issue on the imgur end. Coz the real error is “Unknown error” with status 429. The regular 429 status error from imgur was with “Too many requests”.

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [April 30, 2023, 12:11pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/13 "2023-04-30T12:11:51Z")

</div>

To me it doesn’t sound like a temporary issue with Imgur, but rather an intentional decision on their part to rate limit domains / IPs that have made more than N requests per P period of time. Of course those numbers are not disclosed, and they simply leave us in the dark. But that would explain why the same links that throw a 429 error on our Discourse instances still work fine here on Discourse Meta, I assume because here most users don’t hotlink much stuff from Imgur.

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [April 30, 2023, 12:43pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/14 "2023-04-30T12:43:17Z")

</div>

Also it should be noted that Imgur images can still be displayed by using the native Markdown markup for images:

`![](https://i.imgur.com/6IXPzY7.png)`

 ![](https://global.discourse-cdn.com/meta/original/4X/e/a/7/ea71e1e95059f7329b16c01156c195b46e184c78.png)

BBcode also works:

`[img]https://i.imgur.com/6IXPzY7.png[/img]`

 ![](https://global.discourse-cdn.com/meta/original/4X/e/a/7/ea71e1e95059f7329b16c01156c195b46e184c78.png)

But this is still a majorly complicated workaround for non-technical users, as there is logically no need for a post editor UI button to “Add an image” thanks to the beautifully simple normal Discourse method of just pasting the URL on a separate line.

So I wonder if an adjustment could be considered for the Discourse code to make it generate the necessary `<img>` tag in the baked post when the Onebox attempt for an image link fails with a 429 error, and make the post preview reflect that as well.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 1, 2023, 3:36pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/15 "2023-05-01T15:36:12Z")

</div>

> [@rahim123](#):
>
> Also it should be noted that Imgur images can still be displayed by using the native Markdown markup for images:

Try adding imgur to `disabled image download domains`. That will keep it from downloading the images.

---

<div class="post-metadata">

### Author: ![Deveroonie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deveroonie/32/291873_2.png) [@Deveroonie](https://meta.discourse.org/u/Deveroonie)
#### Post date: [May 1, 2023, 5:01pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/16 "2023-05-01T17:01:38Z")

</div>

not sure if this is possible or not, but try setting up a proxy on the server

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 1, 2023, 8:27pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/17 "2023-05-01T20:27:23Z")

</div>

And then move it to a new IP address every time it gets rate-limited.

---

<div class="post-metadata">

### Author: ![Deveroonie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deveroonie/32/291873_2.png) [@Deveroonie](https://meta.discourse.org/u/Deveroonie)
#### Post date: [May 2, 2023, 9:00am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/18 "2023-05-02T09:00:48Z")

</div>

depending on imgurs ratelimits and that sites usage of it, you could toggle between proxy and non proxy

---

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [May 2, 2023, 1:21pm UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/19 "2023-05-02T13:21:00Z")

</div>

> [@pfaffman](#):
>
> Try adding imgur to `disabled image download domains`. That will keep it from downloading the images.

Hi Jay, I have disabled downloading all hotlinked images, because my forum has tons of them and I don’t want to deal with all the storage space.

It still seems to me that Discourse shouldn’t fail to generate `<img>` tags just because the link throws a 429 error. It’s treating it as if it were a 404 link, whereas a 429 by definition means that it’s a working link. If the link ends in `.jpg` or `.png` or whatever and it’s not a 404 then it should wrap it in `<img>` tags and be done with it. It would even show up correctly in the post preview that way.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 3, 2023, 2:24am UTC](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131/20 "2023-05-03T02:24:16Z")

</div>

> [@rahim123](#):
>
> , I have disabled downloading all hotlinked images,

Then it shouldn’t be trying to access them, i would think. What settings did you change?

[Next page](https://meta.discourse.org/t/imgur-images-not-embedding-with-429-error/263131.md?page=2)
