Retrieve media objects - MediaImage.Image is null when it shoudn't

Topic summary

A developer is experiencing an issue with the GraphQL API (version 2024-01) when querying product media images.

The Problem:

  • Most MediaImage objects return data correctly
  • Some MediaImage objects have a null image property despite their status being “READY”
  • The preview.image field contains data, but the main image field is null

Key Question:
The developer is asking whether this is:

  • A Shopify-side bug
  • An expected rule for certain images they’re unaware of
  • A deserialization error on their end

Current Status:
The issue remains unresolved with no responses yet. The developer provided a code example showing their GraphQL query structure and a sample response demonstrating the null image field while other properties (alt, mediaContentType, preview, status, id) populate correctly.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hello :slightly_smiling_face:
Im using GraphQL API version “2024-01”.
Trying to get media image object by quering for product:

"media(first: 100) {
	edges {
		node {
			... on MediaImage {
			alt
			mediaContentType
			preview {
				image {
				id
				altText
				url
				}
			}
			status
			id
			image {
				altText
				url
			}
		}
	}
}}"

For most of the images in the product it works fine, but some of the MediaImage objects have null in Image property (even tho thier status is “READY”), for example:

{
    "Node": {
        "alt": "#rozmiar_100x50",
        "mediaContentType": "IMAGE",
        "preview": {
            "image": {
                "id": "gid://shopify/ImageSource/46188899533134",
                "altText": "#rozmiar_100x50",
                "url": "https://cdn.shopify.com/s/files/1/0758/2266/1966/files/GORA_100x50_4114d394-9523-48e9-91c3-e6ad0947bd53.png?v=1710197505"
            }
        },
        "status": "READY",
        "id": "gid://shopify/MediaImage/46188507758926",
        "image": null
    }
}

Is there some sort of rule for null images that i don’t know of, or is that a bug on shopify side? Shoudn’t “image” be not null as long as “status” is ready? I thought maybe it’s an error on my side during deserialization, but most of the images work correctly, just some doesnt.