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.
The YouTube video ID is invalid or the video was deleted.
is the error I see.
elseif ($response->code != 200) {
dpm($response);
throw new MediaInternetValidationException('The YouTube video ID is invalid or the video was deleted.');
}
The error is in fact -110, or Connection Time Out. So the module is fine, there's no id bug, but my connection to YouTube is the issue.
Good to know :D
Maybe we should add a case where if it's not a recognized error, we provide the error code for the user/developer?
Comment | File | Size | Author |
---|---|---|---|
#7 | youtube_404_timeout-2893112-7.patch | 1.45 KB | AaronELBorg |
#4 | 2893112-4.patch | 641 bytes | opdavies |
Comments
Comment #2
mcdoolz CreditAttribution: mcdoolz commentedComment #3
joseph.olstadPlease submit a patch that handles error code 110
Comment #4
opdaviesI've had the same issue. Here is a patch that throws the same MediaInternetValidationException, just with a different error message.
Comment #5
joseph.olstadthanks!
RTBC
Comment #6
joseph.olstadok should commit this soon.
Comment #7
AaronELBorg CreditAttribution: AaronELBorg commentedNot really the same issue but I ran into an issue where the request was returning a 404. Seems like a strange timing issue.
Attached patch seems to do the trick.
Comment #8
opdaviesIf #7 is a fixing a different thing, it should probably be in it's own issue instead of adding to this one.
Comment #9
stovak CreditAttribution: stovak commentedGoogle as a company is deprecating "http" on all API's. All these API's need to be 100% https.
makes a http call that almost always times out. Creating a new ticket to fix this.
Comment #11
joseph.olstadComment #13
mikeytown2 CreditAttribution: mikeytown2 commentedHeads up that Google now will always return a 200, thus you need to look at the headers vs http status code.