...

View Full Version : YouTube API error retrieving subscription videos (all of a sudden)



Krtoffel
11-03-2012, 01:36 PM
Hi guys,

I've been working on a script that retrieves subscription videos using the YouTube API. It worked fine yesterday, but when I continued working on it today, there was an error that I can't quite grasp. Using catch, I get the following information:

exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 503 GDataServiceUnavailableExceptionService Unavailable' in D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\Gdata\App.php:714 Stack trace: #0 D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\Gdata.php(221): Zend_Gdata_App->performHttpRequest('GET', 'https://gdata.y...', Array, NULL, NULL, NULL) #1 D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\Gdata\App.php(880): Zend_Gdata->performHttpRequest('GET', 'https://gdata.y...', Array) #2 D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\Gdata\App.php(768): Zend_Gdata_App->get('https://gdata.y...', NULL) #3 D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\Gdata\App.php(210): Zend_Gdata_App->importUrl('https://gdata.y...', 'Zend_Gdata_YouT...', NULL) #4 D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\Gdata.php(162): Zend_Gdata_App->getFeed('https://gdata.y...', 'Zend_Gdata_YouT...') #5 D:\software\USBWebserver v8.5\8.5\lib\Zend\library\Zend\custom\Subscription.php(21): Zend_Gdata->getFeed('https://gdata.y...', 'Zend_Gdata_YouT...') #6 D:\software\USBWebserver v8.5\8.5\root\School\Hobbyisten\tennistube\scripts\add_video_functies.php(378): My_Gdata_YouTube->getNewSubscriptionVideos('Buffsterron', Object(PDO)) #7 D:\software\USBWebserver v8.5\8.5\root\School\Hobbyisten\tennistube\admin\add_videos.php(36): getAndPrintUserSubscriptions('Buffsterron', Object(PDO)) #8 {main}

I've googled this problem and the YouTube reference guide showed the following:

A 200 response code indicates that YouTube successfully handled an HTTP GET request to retrieve a feed.

503 (Service unavailable) - A 503 response code indicates that the YouTube Data API service can not be reached. You could retry your request at a later time.

I've been getting this error for a couple of hours now, so I'm unsure whether it will *magically* disappear again in the near future. Anyone familiar with this problem, or anyone with some suggestions as to how to approach this problem?

Thanks!

kbluhm
11-03-2012, 11:22 PM
YouTube has been experiencing some connectivity issues. The 503 error text tells you exactly what's going on. Nothing you can do about it.

You could catch the error and on your site say something about "service unavailable", etc... but as far as functioning properly, you'll just have to wait it out.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum