Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
weekbeforenextThis seems to be working on a Dev server, so maybe the issue is just happening in local dev environment.
Comment #3
anthonylindsay CreditAttribution: anthonylindsay at Annertech commentedI'm experiencing the exact same thing on a dev server.
Comment #4
anthonylindsay CreditAttribution: anthonylindsay at Annertech commentedThis 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.