-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Error ID
c15196ef-a6de-427e-97e6-cbcedbe2ca3f
What happened?
Running an action triggered by a webhook. GGT in cli just crashes. Have done a search for "t.split" in repo and nothing appears.
Error:
An error occurred while communicating with Gadget
t.split is not a function
What did you expect to happen?
No response
Steps to reproduce
Update a product in shopify,
webhook triggers action to update products data from external API.
CLI in VScode crashes, no similar error in logs in web IDE.
Anything else?
Sorry wish i could be more helpful, the cli just crashes sometimes now. It only just started to happen, its likly to do with some code i just added.
I needed to add a polling check to shopify for the product media being finished processing before i could add the media ID to the product variant, perhaps my approach is causing the bug,
` let media = await getMediaById(shopifyClient, mediaId);
let count = 0;
while (media.node.fileStatus !== "READY" || count > 20) {
await delay(500);
media = await getMediaById(shopifyClient, mediaId);
count++;
logger.info(media, `MEDIA STATUS, amount of polls ${count}`);
}
`