Was inserting a you tube link https://www.youtube.com/watch?v=RWKMzIzyYcE and I saw this error:

Exception: Error Processing Request. (Error: 0, php_network_getaddresses: getaddrinfo failed: Name or service not known) in MediaInternetYouTubeHandler->getOEmbed() (line 119 of /srv/bindings/e310a1cafb97400eb96516eb09adc355/code/sites/all/modules/media_youtube/includes/MediaInternetYouTubeHandler.inc)

any ideas?

CommentFileSizeAuthor
#1 youtube_error.png29.76 KBjrbrown
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrbrown’s picture

FileSize
29.76 KB
jrbrown’s picture

Issue tags: +7.x-2.x bug

the fix is line 119 of MediaInternetYouTubeHandler.inc
OLD

$oembed_url = url('http://lh/youtube/index.html', array('query' => array('url' => $external_url, 'format' => 'json')));

NEW

$oembed_url = url('http://www.youtube.com/', array('query' => array('url' => $external_url, 'format' => 'json')));
Devin Carlson’s picture

Assigned: jrbrown » Unassigned
Status: Active » Fixed
Issue tags: -7.x-2.x bug

This is fixed in -dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.