Last night I and some users on IRC started getting 403 forbidden errors when trying to insert videos. The response code from YouTube is:
<error><domain>yt:quota</domain><code >too_many_recent_calls</code ></error>
Theoretically every person making the type of calls M:YT does when it checks validation should be using a Google/YT developer key in their headers. Not sure what's going on specifically yet, but our user agent string is the same across Drupal, which might make YT think that all installs are the same application. Needs more research, and possibly revision of video id validation so that it uses something that can't get shut down for too many calls.
Anyone with experience with the YouTube API, please chime in.
Comments
Comment #1
RobW commentedPatch switches checking the gdata API to checking the OEmbed feed, which AFAIK has no limits on it.
I also wonder if
valid_idshould be called every timeparseis called. That's 9drupal_http_requestsfor an external page's headers on the page that adds a video. A discussion for another issue, I think.Comment #2
realityloop commentedWorks as advertised!
Comment #3
RobW commentedCommitted to 2.x-dev in http://drupalcode.org/project/media_youtube.git/commit/0ed5b9c. Thanks for the feedback and testing.