• Resolved Nazar78

    (@nazar78)


    Hi, I’m recently getting 400 errors on images loaded . The error wasn’t there back then few versions ago. I’ve tried to initiate a manual sync but it doesn’t help.

    Please help to take a look at the page, there’s 3 images (2 top hits and 1 gravatar likes) getting error 400.

    For the gravatar I was able to show the default image by removing wp_user_avatar variable from the URI. For the 2 top hits, one of them was from a very old post. The other was a recent post and it’s working before. Think it needs to be reset from your end?

    Thank you.

    Edited: I logged into wordpress.com and in the posts and media section, many of the thumbnails are missing too same 400 error. How do I fix this?

    • This topic was modified 4 years, 7 months ago by Nazar78. Reason: Updates

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Nazar78

    (@nazar78)

    I’ve temporarily modified the /wp-content/plugins/jetpack/modules/widgets/top-posts.php to force thumbnails to load from other CDN.

    From the page that I mentioned, this is one of the many thumbnails that failed to load error 400: https://i1.wp.com/teanazar.com/wp-content/uploads/2015/10/Setting-Up-Remote-WOL-Wake-On-LAN.png?resize=40%2C40 (there’s many more from wordpress.com posts page) and this gravatar post likes also: https://2.gravatar.com/avatar/8c1d5e8ab6adafd30a45e0163e101907?s=96&d=wp_user_avatar&r=G

    Please help advise how do I fix this?

    Plugin Support supernovia

    (@supernovia)

    Hi, so we’ll need to treat the Gravatar issue separately, but regarding the 400 error, usually we’ll see these in a few cases:

    – There’s a block between your server and ours

    – You’ve got anti-hotlink protection blocking our image requests

    or

    – The server isn’t returning the images quickly

    If only half the images on the page are affected, I’m guessing it’s that last scenario. I am guessing something timed out.

    I didn’t see either image on the page you linked, so could you send a link to the affected page? We’ll go from there.

    Thread Starter Nazar78

    (@nazar78)

    so we’ll need to treat the Gravatar issue separately

    Thanks ok noted on the gravatar issue, I’ll open a separate thread later

    If only half the images on the page are affected, I’m guessing it’s that last scenario. I am guessing something timed out.

    Yes I think this is most probably the issue. Last few days I noticed the domains from i*.wp.com are loading very slowly, everything else are as fast as they should. As mentioned, to temporarily fix the missing images, I modified Jetpack’s /wp-content/plugins/jetpack/modules/widgets/top-posts.php to force thumbnails to load pulled from other CDN, that’s why you don’t see the missing pictures on that page as it’s not from Jetpack’s CDN.

    However I’m not sure how to show you the affected pages because it’s from the Jetpack’s top post widget and right now there’s no missing images in the top posts but in fact there’s lots of other missing images (error 400) on the Jetpack’s CDN when I log into https://wordpress.com/posts/teanazar.com or https://wordpress.com/media/teanazar.com.

    Jetpack debug shows I’m connected and no significant issue but take a look at this image as an example which is attached to one of my post. This image exists on my site https://teanazar.com/wp-content/uploads/2015/10/Setting-Up-Remote-WOL-Wake-On-LAN.png?resize=40%2C40 and Jetpack’s CDN should be able to pull it from my server to display it on the top post widget but instead it got error 400 on the Jetpack’s CDN https://i1.wp.com/teanazar.com/wp-content/uploads/2015/10/Setting-Up-Remote-WOL-Wake-On-LAN.png?resize=40%2C40. If I were to switched on Jetpack’s CDN (previously known as Photon) right now then there’ll be lots of missing images with error 400 on my site.

    There’s lots of missing images and can’t expect to rename all of them? So what does this error tells us? We cannot complete this request, remote server returned an unexpected status code (400). Jetpack pulled the image but got error 400 and never retry? I think you can easily help rectify this issue by looking or debugging at what’s wrong with the Jetpack CDN image link I stated above because it applies to all those missing Jetpack CDN images for my site with error 400. Thank you.

    Plugin Support supernovia

    (@supernovia)

    If you also suspect the images timed out, we’ll need you to reach support directly so they can help you sort that out. Please reach out here:

    https://jetpack.com/contact-support/

    Thread Starter Nazar78

    (@nazar78)

    Ok noted, I’ve contacted support. They seems busy.

    Thread Starter Nazar78

    (@nazar78)

    Just to update the issue has been resolved! Apparently Jetpack CDN doesn’t support gzip.

    Cheers and thumbs up to the wonderful Jetpack support team for helping me figuring out this issue!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Some WP hosted images failed error 400’ is closed to new replies.