Shopify Product Import - image URL failure

Hello, I am facing issues using the Shopify Product Import feature.

When i do a product import with images, the import fails and complains about the image URL. When I visit the image URL in my browser it works fine, and is not exceeding the max image size in Shopify.

However, the product import works fine, when I do the same file and remove the image URLs.

Currently, the only workaround I have is to do the product import (no images), then I have to manually download the image from the given URLs and manually upload each of them to their respective products through the Shopify Admin.

I am receiving 1 of these errors for the product import rows that have an image URL populated.

  1. Validation failed: An error occurred while trying to download the image
    An image file is missing.
  2. Validation failed: getaddrinfo: nodename nor servname provided, or not known
    This error is caused when there is a mistake in the image URL. The image URL needs to have http:// in front of it. It also needs to be a publicly accessible direct link to the image.

All image URLs are hosted on an httpS site, is that the source of the problem? Seems strange as most things are HTTPS nowadays.

I was debating on writing my own custom script to download product image URLs, but am not sure what the script should do next…

  • Should it re-upload the image to another site which is http (not secure) / then save those URLs into the product import sheet?
  • Should it connect with the Shopify API and upload the image directly into Shopify (is that possible)?

Does anyone have suggestions on how to address this issue?

Thanks in advance for your help!

Use https://postimages.org/ for hosting

Hi Tammie,

I faced a similar issue before running our app Stock Sync (https://apps.shopify.com/stocksync). We recommend using ImageKit as CDN for the existing images and replace the image URL with the ImageKit URL prefix. It works for most of the image import issues we faced. Or you can try using our app and apply this setting: https://help.stock-sync.com/support/solutions/articles/44002393821-cdn-proxy-url.