Yes, the error is still occuring on both the Zend Gdata library and the Google Provisioning API v2 Sample WAR.
This seems to only be when its trying to pull all groups from a domain.
- Josh
On Tue, Dec 8, 2009 at 1:51 PM, Trevor Johns <tjohns@google.com> wrote:
jgilmour,
Could you let me know if you're still experiencing this?
--
Trevor Johns
On Mon, Nov 30, 2009 at 3:42 PM, jgilmour <jgilmour@brightcove.com> wrote:
>
> Hi All,
> I have an error with some code that has been working for a while, it's
> basically just pulling the groups from google.
> The code is below:
>
> -- start code ---
> <?php
> require_once 'Zend/Loader.php';
> Zend_Loader::loadClass('Zend_Gdata');
> Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
> Zend_Loader::loadClass('Zend_Gdata_Gapps');
>
> $domain = "domain.com";
> $emailaddr = "googleadmin@domain.com";
> $emailpw = "adm1nzr0x0rz!";
> $service = Zend_Gdata_Gapps::AUTH_SERVICE_NAME;
>
>
> $client = Zend_Gdata_ClientLogin::getHttpClient($emailaddr, $emailpw,
> $service);
> $gdata = new Zend_Gdata_Gapps($client, $domain);
> ?>
>
> <head>
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
> <link href="style.css" type="text/css" rel="stylesheet"/>
> </script>
> </head>
>
> <?php
> $feed = $gdata->retrieveAllEmailLists();
> $i = 0;
> foreach ($feed as $list) {
> $i++;
> }
> ?>
>
> <html><body>
> <h2>Groups<?php echo " (Total: " . $i . ")"?></h2>
> <?php
> foreach ($feed as $list) {
> echo "$list->emailList->name";
> }
> ?>
> --- end code cut ---
>
> When trying to run this now I see the following instead of the group lists:
> Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message
> 'Expected response code 200, got 500 Internal Error' in
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/App.php:700 Stack trace: #0
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata.php(219):
> Zend_Gdata_App->performHttpRequest('GET', 'https://apps-ap...', Array, NULL,
> NULL, NULL) #1 /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/App.php(861):
> Zend_Gdata->performHttpRequest('GET', 'https://apps-ap...', Array) #2
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/Gapps.php(202):
> Zend_Gdata_App->get('https://apps-ap...', NULL) #3
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/App.php(754):
> Zend_Gdata_Gapps->get('https://apps-ap...', NULL) #4
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/App.php(205):
> Zend_Gdata_App->importUrl('https://apps-ap...', 'Zend_Gdata_Gapp...', NULL)
> #5 /usr/local/ZendGdata-1.9.2/library/Zend/Gdata.php(162):
> Zend_Gdata_App->getFeed('https://apps-ap...', 'Zend_Gdata_Gapp...') #6
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/Gapps.php(394): in
> /usr/local/ZendGdata-1.9.2/library/Zend/Gdata/App.php on line 700
>
> Anyone know how to fix this, and/or why it happened?
>
> --
> View this message in context: http://n4.nabble.com/ZendGdata-stopped-working-Uncaught-exception-Zend-Gdata-App-HttpException-with-message-Expected-resp0-tp931738p931738.html
> Sent from the Zend gdata mailing list archive at Nabble.com.
>
--
Josh Gilmour | Windows Systems & Network Administrator
Brightcove, Inc. www.brightcove.com
One Cambridge Center, 12th Floor, Cambridge, MA 02142
P: 617.395.5843 F: 617.395.8352
没有评论:
发表评论