Hi, I get random errors on creating Collections or Products with the GraphQL API:
Errors:
- Create collection : “Image upload failed. Image https://images.schoolstore.jostens.com/1465339-FULL.png failed to download.”
The Image has correct format.
- Product creation some variants are created with No Image and not error throw.
It is random because I can detect in my logs that it failed, but then I run the same mutation and works with Postman for example.
-
I’m creating like 20 collections at the same time, and maybe 1-5 are failing with this random error.
-
Recently I move the development environment to a new environment for Production, the domain name of the host that this images are saved is new “images.schoolstore.jostens.com” , could be that you have some delay and it takes days to have in your system propagated this host domain?
-
In my old environment with host “xxxxxx.cloudfront” was working fine with no errors. (same configuration that this new host).
Can you help me please.
Complete Error:
{ "extensions":Extensions{cost = 'Cost{throttleStatus = 'ThrottleStatus{restoreRate = '100.0',currentlyAvailable = '1990',maximumAvailable = '2000.0'}',requestedQueryCost = '10',actualQueryCost = '10'}'}, "data":Data{collectionCreate = 'CollectionCreate{userErrors = '[{field=null, message=Image upload failed. Image https://images.schoolstore.jostens.com/1465339-FULL.png failed to download.}]',collection = 'null'}'}, "errors":null}
Mutation Collection:
mutation collectionCreate($input: CollectionInput =
{
descriptionHtml: "<div class=\"heading-divider heading-divider--long\"></div>\n<div> </div>\n<div class=\"container\">\n<div class=\"one-third column text-center first\"><img src=\"https://images.schoolstore.jostens.com/1465339-FULL.png\" width=\"200px\" /></div>\n<div class=\"two-thirds column text-center second\"><center>\n<h1>West Grove Pennsylvania Red Devils </h1>\n<br /><br /> Avon Grove Charter apparel is now available! Select from the various styles and colors of the finest in school Spiritwear. Top brands and quality printing or embroidery... You will look great on the field or in the stands. <br /><br /></center></div>\n<div style=\"display:[collection-list-display];\">[collection-list]</div></div>\n<br /><br />\n<div class=\"heading-divider heading-divider--long\"></div>",
title: "West Grove Pennsylvania Red Devils",
handle: "West Grove Pennsylvania Red Devils-1579801875676",
products: [],
image: {
src: "https://images.schoolstore.jostens.com/1465339-FULL.png",
altText: "logo-school",
}
}) {
collectionCreate(input: $input) {
collection {
id
title
handle
descriptionHtml
}
userErrors {
field
message
}
}
}