I’m submitting a bulk query for images, and they are returned in the bulk file. It looks like we’re able to access the image for a short amount of to do some calculations, but when we use the image URL after about an hour the link returns a 404. There seems to be some weird SHA attached towards the last half of the URL. If I remove the hash the image works correctly. What is going on?
Original Link
link with sha removed
https://cdn.shopify.com/s/files/1/0211/7635/2832/products/51016_f_fm.jpg?v=1652844643
images portion of bulk query
...
images {
edges {
node {
id
originalSrc
}
}
}
...
Images returned as jsonlines.
{"id":"gid:\/\/shopify\/ProductImage\/29158816579657","originalSrc":"https:\/\/cdn.shopify.com\/s\/files\/1\/0211\/7635\/2832\/products\/51015_f_fm_7edd7d9f-619e-48c5-bb11-6aa4aa0b2679.jpg?v=1652844643","__parentId":"gid:\/\/shopify\/Product\/6755972808777"}
{"id":"gid:\/\/shopify\/ProductImage\/29158816612425","originalSrc":"https:\/\/cdn.shopify.com\/s\/files\/1\/0211\/7635\/2832\/products\/51016_f_fm_0a54da41-c627-470d-8ffb-4a1caca41e8c.jpg?v=1652844643","__parentId":"gid:\/\/shopify\/Product\/6755972808777"}
{"id":"gid:\/\/shopify\/ProductImage\/29158816710729","originalSrc":"https:\/\/cdn.shopify.com\/s\/files\/1\/0211\/7635\/2832\/products\/51017_f_fm_fd88025d-e8fe-49f0-bfbb-f41e8b462d4e.jpg?v=1652844645","__parentId":"gid:\/\/shopify\/Product\/6755972808777"}
Doing a regular graphql query on the product returns URLs without some random string in the middle:
request:
query ($ID: ID!) {
product(id: $ID) {
images(first: 2) {
edges {
node {
originalSrc
}
}
}
}
}
response
{
"data": {
"product": {
"images": {
"edges": [
{
"node": {
"originalSrc": "https:\/\/cdn.shopify.com\/s\/files\/1\/0211\/7635\/2832\/products\/51015_f_fm.jpg?v=1652869352"
}
},
{
"node": {
"originalSrc": "https:\/\/cdn.shopify.com\/s\/files\/1\/0211\/7635\/2832\/products\/51016_f_fm.jpg?v=1652869352"
}
}
]
}
}
},
"extensions": {
"cost": {
"requestedQueryCost": 5,
"actualQueryCost": 5,
"throttleStatus": {
"maximumAvailable": 2000.0,
"currentlyAvailable": 1995,
"restoreRate": 100.0
}
}
}
}