productSet Mutation with duplicateResolutionMode: REPLACE Causes Images to Disappear Every Other Time

Hey @Kevin_Sieger , thanks I already checked that one, and you’re right it is similar. However when I started working on writing it up, I didn’t see that issue:
Anyways, I tried including the mediaWarnings and mediaErrors but its behaving in the same way in alternating responses:

Looks like the response just alternates between

{
  "data": {
    "productSet": {
      "product": {
        "title": "Cool New Camera",
        "id": "gid://shopify/Product/10106804273446",
        "US": true,
        "CA": true,
        "AU": true,
        "media": {
          "nodes": []
        }
      },
      "productSetOperation": null,
      "userErrors": []
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 65,
      "actualQueryCost": 52,
      "throttleStatus": {
        "maximumAvailable": 20000,
        "currentlyAvailable": 19948,
        "restoreRate": 1000
      }
    }
  }
}

and

{
  "data": {
    "productSet": {
      "product": {
        "title": "Cool New Camera",
        "id": "gid://shopify/Product/10106804273446",
        "US": true,
        "CA": true,
        "AU": true,
        "media": {
          "nodes": [
            {
              "id": "gid://shopify/MediaImage/42179317399846",
              "mediaWarnings": [],
              "mediaErrors": [],
              "mediaContentType": "IMAGE"
            },
            {
              "id": "gid://shopify/MediaImage/42179317432614",
              "mediaWarnings": [],
              "mediaErrors": [],
              "mediaContentType": "IMAGE"
            }
          ]
        }
      },
      "productSetOperation": null,
      "userErrors": []
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 65,
      "actualQueryCost": 55,
      "throttleStatus": {
        "maximumAvailable": 20000,
        "currentlyAvailable": 19945,
        "restoreRate": 1000
      }
    }
  }
}

Would someone from Shopify be able to take a look?

1 Like