Image block throws error for urlbox image links

I am giving it url from urlbox and it gives the below error. Please help.

https://app.mindstudio.ai/agents/ef1640d3-8580-4900-8697-6b34e31550c4/edit
New run with ID “a048fe88-5278-44c4-850e-f990a0635180”

ERRORModel Error:

GPT-4o-2024-05-13 Error while downloading https://api.urlbox.io/v1/OPR4m92cciepzBnl/39d887f1c96285a95931098c90f5eaf61a2bd1ef0c1de5106743fe0b2cdc2b00/jpg?ttl=86400&unique=2025-05-06T04%3A54%3A09.952Z&url=https%3A%2F%2Fwww.coyuchi.com%2Fproducts%2Forganic-linen-sheets%3Fvariant%3D50400990331172&device=desktop&full_page=true&scroll_page=false&block_ads=true&block_trackers=true&no_cookie_banners=true&hide_cookie_banners=true&no_modals=true&click_accept=true&block_frames=true&max_height=3098&wait_until=requestsfinished&quality=80.

That error is coming from the model itself, not MindStudio. You will likely need to rehost the image, as for whatever reason OpenAI can’t download it. You could use a simple custom function in MindStudio and do:

ai.vars.newImageUrl = await ai.rehostImage(ai.vars.imageUrl);

Did that urlbox URL come from a MindStudio block? Or is it something you generated on your own?

Thank you so much this workaround did the trick for me. And urlbox URL came from a MindStudio run execution block where i made an intentional screenshot request to urlbox

1 Like