Hi,
You can also try the suggested workaround of increasing the timeout
and let us know about our findings.
The similar code for PHP would be:
$service = Zend_Gdata_Gapps::AUTH_SERVICE_NAME;
$config = array(
'timeout' => 30
);
// Instantiate a client object
$client_temp = new Zend_Http_Client();
$client_temp->setConfig($config);
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $password,
$service,$client_temp);
$service = new Zend_Gdata_Gapps($client, $domain);
$feed = $service->retrieveAllEmailLists();
Here is a list of all available config parameters for client object:
http://framework.zend.com/manual/en/zend.http.html#zend.http.client.configuration
-Anirudh
On Oct 24, 10:48 pm, cm_gui <[EMAIL PROTECTED]> wrote:
> hi Alex
>
> I have the same problem.
> My script was running fine until recently.
> Don't know when it started to fail.
>
> It now fails at $feed = $service->retrieveAllEmailLists();
>
> try{
> $feed = $service->retrieveAllEmailLists();
> } catch (Zend_Gdata_Gapps_ServiceException $e) {
> echo $abc;
>
> We had no problem until recently.
>
> Thank you.
>
> On Oct 6, 4:00 pm, "Alex (Google)" <[EMAIL PROTECTED]> wrote:
>
> > Hi Patrick,
>
> > If this is still happening, can you file a support request? You can
> > find the contact form in the control panel along side the Customer and
> > Support PIN.
>
> > -alex
>
> > On Oct 1, 9:26 am,patbau<[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have a time out error when trying to use RetrieveAllEmailLists().
> > > The same code was slow but working some month ago.
> > > I'm managing several domains and have the same error with all of them.
>
> > > Could anybody help ?
>
> > > Thanks in advance
>
> > > Patrick
>
> > > The error message .....
> > > -----------------------------------------------------------------------------------------------------------------------------------
> > > System.Reflection.TargetInvocationException: Exception has been thrown
> > > by the target of an invocation. --->
> > > Google.GData.Client.GDataRequestException: Execution of request
> > > failed:https://www.google.com/a/feeds/xxx.k12.tr/emailList/2.0--->
> > > System.Net.WebException: The operation has timed out
> > > at System.Net.HttpWebRequest.GetResponse()
> > > at Google.GData.Client.GDataRequest.Execute()
> > > --- End of inner exception stack trace ---
> > > at Google.GData.Apps.EmailListService.Query(EmailListQuery
> > > feedQuery)
> > > at Google.GData.Apps.AppsService.RetrieveAllEmailLists()
> > > --- End of inner exception stack trace ---
> > > at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
> > > Object[] arguments, SignatureStruct& sig, MethodAttributes
> > > methodAttributes, RuntimeTypeHandle typeOwner)
> > > at System.RuntimeMethodHandle.InvokeMethodFast(Object target,
> > > Object[] arguments, Signature sig, MethodAttributes methodAttributes,
> > > RuntimeTypeHandle typeOwner)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
> > > BindingFlags invokeAttr, Binder binder, Object[] parameters,
> > > CultureInfo culture, Boolean skipVisibilityChecks)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
> > > BindingFlags invokeAttr, Binder binder, Object[] parameters,
> > > CultureInfo culture)
> > > at CDotNetMethod.bInvoke(SByte* pszTypeName, SByte* pszMethodName,
> > > SByte* pszParameters, MethodInfo gcMethod, Object gcObj, CSLevel*
> > > pclPile, Int32 nNbParamPile, Int32 bValeurRetour, STOperationDotNet*
> > > pstOperation)
> > > -----------------------------------------------------------------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---