While i try to create the custom flow to sync the video url from netsuite to magento using the media endpoint it shows this error
TypeError: Magento\Framework\Api\ImageContentValidator::isValid(): Argument #1 ($imageContent) must be of type Magento\Framework\Api\Data\ImageContentInterface, null given, called in /chroot/home/af107f40/a22ec7ff52.nxcli.io/vendor/magento/module-catalog/Model/Product/Gallery/GalleryManagement.php on line 125 and defined in /chroot/home/af107f40/a22ec7ff52.nxcli.io/vendor/magento/framework/Api/ImageContentValidator.php:49 Stack trace: #0 /chroot/home/af107f40/a22ec7ff52.nxcli.io/vendor/magent...
I still couldn’t find the reason for this error
{
"entry": {
"id": "437",
"extension_attributes": {
"video_content": {
"video_url": " ",
"media_type": "external-video",
"video_provider": "youtube",
"video_title": "Test Video",
"video_description": "This is a test video for a237r"
}
},
"media_type": "external-video",
"label": "test",
"types": [
"image",
"small_image",
"swatch_image",
"thumbnail"
]
}
}
this is the debug looks like
according to the media api i need to setup the content field too but i wonder that why should i give that because i am trying to sync the video url not an image then why i am supposed to setup the base64