sheet.insertImage() - Exception: Error retrieving image from URL or bad URL:

29 views
Skip to first unread message

Brendan Murphy

unread,
Apr 15, 2024, 3:19:13 AMApr 15
to Google Apps Script Community
As of 2 days ago (and for years before) used to work fine. Now i get this error every time i run the script (same code as before):

var image = sheet.insertImage(headerImgUrl, 1, 1);

Exception: Error retrieving image from URL or bad URL: https://cdn.shopify.com/s/files/1/1074/7484/collections/29_iqbalkhatri55.png?v=1713020310

Any help appreciated...


Fabrice Faucheux

unread,
Apr 15, 2024, 1:53:40 PMApr 15
to Google Apps Script Community
Hi,

I've just tested it directly with the image function, and it works.

=IMAGE("https://cdn.shopify.com/s/files/1/1074/7484/collections/29_iqbalkhatri55.png?v=1713020310";4;100;100)

Can you share the full Apps script function?
Reply all
Reply to author
Forward
0 new messages