Skip to content

Commit 4515336

Browse files
author
Yurii Hryhoriev
committed
MAGETWO-52240: Getting "Attention: Video not found" error when adding youtube video URL
1 parent 45ce6e5 commit 4515336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ define([
446446
$.unique(errorsMessage).join(', ');
447447
};
448448

449-
if (data.error && data.error.code === 400) {
449+
if (data.error && [400, 402, 403].indexOf(data.error.code) !== -1) {
450450
this._onRequestError(createErrorMessage());
451451

452452
return;

0 commit comments

Comments
 (0)