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

RobW’s picture

Status: Active » Needs review
StatusFileSize
new949 bytes

Patch switches checking the gdata API to checking the OEmbed feed, which AFAIK has no limits on it.

I also wonder if valid_id should be called every time parse is called. That's 9 drupal_http_requests for an external page's headers on the page that adds a video. A discussion for another issue, I think.

realityloop’s picture

Status: Needs review » Reviewed & tested by the community

Works as advertised!

RobW’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 2.x-dev in http://drupalcode.org/project/media_youtube.git/commit/0ed5b9c. Thanks for the feedback and testing.

Status: Fixed » Closed (fixed)

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