Tuesday, April 5, 2011

[YouTube-API] Re: New server and Uncaught exception 'Zend_Gdata_App_HttpException' (Error #60)

Hello,

It's almost certainly a network issue on your end. There was no
outage to https://www.google.com that I am aware of.

Cheers,
-Jeff Posnick, YouTube API Team
~ YouTube is hiring! ~ http://google.com/jobs/workyoutube ~


On Mar 31, 7:08 am, sk_perl <srdjan_kra...@yahoo.com> wrote:
> Hi, I'm newbie with YouTube API.
>
> We have one web application for uploading videos to YouTube. It worked
> without problem, but on the new server upload fail with message (from
> error.log):
>
> [Thu Mar 30 12:46:59 2011] [error] [client x.x.x.x]
> PHP Fatal error:  Uncaught exception 'Zend_Gdata_App_HttpException' withmessage 'Unable
> to Connect to ssl://www.google.com:443. Error #60: Operation timed out'
>
> The class we used has autentication:
>  require_once 'Zend/Loader.php';
>
>  Zend_Loader::loadClass('Zend_Gdata_YouTube');
>  Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
>  Zend_Loader::loadClass('Zend_Gdata_HttpClient');
>  Zend_Loader::loadClass('Zend_Gdata_App_MediaFileSource');
>  Zend_Loader::loadClass('Zend_Gdata_App_HttpException');
>  Zend_Loader::loadClass('Zend_Uri_Http');
>  Zend_Loader::loadClass('Zend_Gdata_App_Exception');
>
>  //login in to YT
>  $authenticationURL= 'https://www.google.com/youtube/accounts/ClientLogin';
>
>  $httpClient = Zend_Gdata_ClientLogin::getHttpClient(
>   $username = $yt_user,
>   $password = $yt_passwd,
>   $service = 'youtube',
>   $client = null,
>   $source = $yt_source,
>   $loginToken = null,
>   $loginCaptcha = null,
>   $authenticationURL);
>
>  $config = array('timeout' => 1000);
>
>  $httpClient->setConfig($config);
>
>  $yt = new Zend_Gdata_YouTube($httpClient, $yt_source, NULL, $yt_api_dev_key
> );
>
>  return $yt;
>
> The ssl library (extension=php_openssl.dll) is activated on the server.
>
> I'm not sure if it could be some proxy problem...
>
> Thank you in advance.

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment