Why does file_url return 'Liquid error: internal' in my product metafields?

Hello there,

Since few hours a call to a metafield with file_url return “Liquid error: internal”

For example

{{ product.metafields.my_fields.video|file_url }}

return only “Liquid error: internal”

{{ product.metafields.my_fields.video }}
return
gid://shopify/Video/299390268XXXXX

Any idea?

Thanks

1 Like

Any update on this bug?

Hi @OSMAAAA ,

Please changed code:

{{ product.metafields.my_fields.video|file_url }}

=>

{{ product.metafields.my_fields.video | media_tag: image_size: "2048x", autoplay: true, controls: true, preload: "none", autoplay: true }}

Refer https://shopify.dev/api/liquid/filters/media-filters#media_tag

Hope it helps!

Hello LitCommerce,

Thanks ; it work with media_tag ; but i need the URL of the video for proposing download to user.

It was working before with file_url without problem.

I will get the url in js from the video html tag, it will work too.

Cdly

1 Like