The image errors Shopify documents
| What Shopify shows | What Shopify’s help page says | What to check |
|---|---|---|
| Validation failed: An error occurred while trying to download the image | An image file is missing. | Does the URL still open? Was the product or image deleted after you exported the CSV? |
| Validation failed: getaddrinfo: nodename nor servname provided, or not known | There is a mistake in the image URL. It needs a protocol in front and must be a publicly accessible direct link to the image. | Typos, a missing https://, spaces, a link to a web page instead of the image file. |
| Incorrect header check | Remove the image from that line and try again. If that fixes it, try hosting the image somewhere else. | The image file itself or its host. Re-upload it, or host it elsewhere. |
| Validation failed: The uploaded image exceeds the 20 megapixel limit | Reduce the size of the image or use a different image. | The image dimensions. Shopify’s page mentions images up to 5000 x 5000 px. |
Shopify’s product CSV guidance adds that image URLs must be publicly accessible, behind an https:// protocol with no password protection, and that a CSV can contain only image URLs (3D models and videos can’t be imported this way).
A URL checklist
- Protocol. Start with
https://. A URL likecdn.example.com/a.jpghas no protocol, and//cdn.example.com/a.jpgis relative. - Public. The link must open without logging in. Links from a private folder, an intranet or a password-protected shop will fail.
- Direct. The link must point at the image file itself (it usually ends in
.jpg,.pngor similar), not at a web page that displays the image. - No spaces or odd characters. Spaces become
%20. Accented letters and symbols in file names also need to be percent-encoded. - A final file name. Shopify says the file name can’t be edited after upload, and it should not include
_thumb,_smallor_mediumsuffixes. - Still there. If you removed products or images from your store after exporting, importing those rows without updating their image URLs fails.
- Images in Content → Files. If you link to an image in the Files area, Shopify downloads it again and the copy lands in the
/products/folder. Shopify says this is expected, and suggests hosting elsewhere or uploading directly if you want to avoid the duplicate. - At most 250 images per product.
Test the links before you import
The most reliable test is the one Shopify performs: request the URL from outside your own network. Open a few links in a private browser window. For a whole list, this shell loop prints the HTTP status of every URL in a text file (one URL per line); 200 means the file was served.
while read -r url; do
code=$(curl -o /dev/null -s -L -w "%{http_code}" "$url")
echo "$code $url"
done < urls.txtAnything other than 200 (for example 403, 404 or 000) needs attention. A 200 for a page that shows a login form is not proof that the image is reachable, so open a few of them yourself.
Find the row that is causing it
- Note the line number in Shopify’s message.
- Remove the image URL from that line and import again. If the error disappears, the URL or its host is the problem.
- If the error appears again on another line, repeat. Large files can be split in halves to find a bad row faster.
- Fix the URL using the checklist, or host the image somewhere else, as Shopify suggests for “Incorrect header check”.
What ShopiClean does with image URLs
Disclosure: ShopiClean is our own product. Everything in this guide can be done by hand in a spreadsheet; the tool simply automates the checks. The scan and the on-screen 5-row preview are free, and downloading the repaired file needs a 7-Day Pass ($9).
What the Image Checker does:
- Changes
http://and mistypedhtp://links tohttps://, addshttps://to links that start withwww.or//, and percent-encodes spaces, accented characters and other unsafe characters. - Reports cells that contain several URLs, links that point at non-image files such as PDFs, thumbnail-style file names, and products with more than 250 images.
- Removes values that cannot be web addresses at all, such as relative paths,
C:\paths andftp://links, and reports how many it removed.
What it does not do:
- It never contacts your image servers, so it cannot tell whether a link is live, public or the right size. Use the browser test or the shell loop above for that.
- When it removes a link, it leaves the row’s Image Position and Image Alt Text behind. Clear those cells too, or Shopify reports “Src cannot be blank”.
Sources and how this guide was checked
The Shopify behaviors described above were checked against the Shopify Help Center pages below on 8 November 2026. Shopify can change how imports work, so if something here differs from what you see, trust Shopify’s documentation.