You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're parsing an Asset that is missing required fields (e.g. file), then Contenfully will throw when it tries to transform the Asset to a Media object.
The specific issue sits in the line where you dereference an undefined file.url property, causing an unexpected / uncaught Error to be thrown.
I understand that this is definitely a content editing issue, but it's a tough bug to trace or defensively program against. It also probably only applies to preview environments where invalid data might be seen.
If you're parsing an
Asset
that is missing required fields (e.g. file), then Contenfully will throw when it tries to transform the Asset to aMedia
object.The specific issue sits in the line where you dereference an undefined
file.url
property, causing an unexpected / uncaught Error to be thrown.I understand that this is definitely a content editing issue, but it's a tough bug to trace or defensively program against. It also probably only applies to preview environments where invalid data might be seen.
At a minimum, I would suggest:
Additionally, it would be really nice if you had some type of option to prune / drop malformed assets from the results.
The text was updated successfully, but these errors were encountered: