Just updated the Media module to version 2.1 and the following error was introduced:
Exception: Error Processing Request. (Error: 401, Unauthorized) in MediaYouTubeStreamWrapper->getOriginalThumbnailPath() (line 31 of /home/vagrant/docroot/sites/all/modules/contrib/media_youtube/includes/MediaYouTubeStreamWrapper.inc).

The error occurs when clicking the 'Add media' button in a WYSIWYG editor. When the modal pops up, "The website encountered an unexpected error. Please try again later." and the error is in the logs.

Comments

weekbeforenext created an issue.

weekbeforenext’s picture

This seems to be working on a Dev server, so maybe the issue is just happening in local dev environment.

anthonylindsay’s picture

I'm experiencing the exact same thing on a dev server.

anthonylindsay’s picture

This is solved by using the latest dev version. The issue is that the module can't get a thumbnail from Youtube because for whatever reason, Youtube says access denied. Presumably it's a setting on the video on Youtube. But anyway, the module didn't handle the exception gracefully.

It actually got solved here: https://www.drupal.org/node/2498493

It would be great to get another stable release of the module.