Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2011
    Posts
    24
    Thanks
    6
    Thanked 0 Times in 0 Posts

    YouTube API error retrieving subscription videos (all of a sudden)

    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!

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    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.
    Last edited by kbluhm; 11-03-2012 at 10:33 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •