# Cannot PullHotlinkedImages for some domains

**URL:** <https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340>\
**Category:** Product Support\
**Created:** [March 13, 2022, 4:18pm UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340 "2022-03-13T16:18:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [March 13, 2022, 4:18pm UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/1 "2022-03-13T16:18:52Z")

</div>

Thank you for the link. Apparently it didn’t work that well:

> [@Some linked images not displaying/show as broken](https://meta.discourse.org/t/some-linked-images-not-displaying-show-as-broken/142177/8):
>
> In the end this turned out not to be reliable, it would work for a few posts but not for all. I’ll have to have another go at trying to upload the images again. I had issues with this before with requests just hanging. I’m not sure if I tried the skip\_validations parameter on those requests though.

But I indeed thought about this solution as well.

Another solution could be to replace all `[img]` tags with empty new lines ([couldn’t figure out yet to do it](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729/143), but I’m searching), but there are 40000 posts, so I prefer not to fail on this one… 😅

* * *

edit: nope, that wouldn’t work, because the “working” broken image are inside a `[URL]` link, so here’s what the result would look like:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/3/13e52aadffc45db6f7586a53d97f09ba6f1d494e.png)  
The images wouldn’t be displayed 😖

* * *

edit 2: I also tried to replace the [IMG] tags by standard HTML tags, such as `<img src="https://nsm09.casimages.com/img/2019/07/23//19072308092617331416324744.jpg" />`  
But the problem is still the same as with the `[IMG]` tags, so it doesn’t work either. That’s really a bummer, especially when all the images are nicely displayed in the post preview…

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/4/34f141bf958f5bb18a4c8923a857645329cd7451.jpeg)

* * *

Edit 3: the same phenomenon appears (sort of) in new (non-imported) posts, but not for all image links.  
Also, if the automatic image display doesn’t work, the image are displayed if we use manually any tag or image formatting used by Discourse.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/5/e512023699369c94503cd31b8b013d1b3fb77004.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/e/2eda10122f8ee1f9c32a5ef5de52c017ae35ce45.jpeg)

Rebuilding HTML won’t make the two first links display as images; They’ll be kept as they are, despite the fact that they should display directly an image.

BUT!  
When the PullHotlinkedImages jobs are executed, then, the images break!

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/4/d43c3316b9a4f00132d450b039bed01e37c9aacf.jpeg)

I understand less and less what’s going on and if all these issues are connected in any sort of way.

**That _looks_ like a Discourse issue… But is it?**

I can’t try on an older version of Discourse, all my forums are on the latest.

(and nothing in Discourse’s logs)

---

_[View the full topic](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340)._
