12 messages in com.googlegroups.opensocial-container[OpenSocial] Re: Failed to retrieve g...
FromSent OnAttachments
Alex25 Jun 2008 08:39 
Chris Chabot25 Jun 2008 10:31 
tuhin.barua27 Jun 2008 01:14 
tuhin.barua27 Jun 2008 01:21 
Chris Chabot27 Jun 2008 02:36 
Chris Chabot27 Jun 2008 02:40 
tuhin.barua09 Jul 2008 03:14 
Chris Chabot09 Jul 2008 03:54 
tuhin.barua18 Aug 2008 07:14 
Chris Chabot19 Aug 2008 03:23 
tuhin.barua10 Sep 2008 03:27 
tuhin.barua10 Sep 2008 04:12 
Subject:[OpenSocial] Re: Failed to retrieve gadget content...
From:Chris Chabot (chab@xs4all.nl)
Date:06/27/2008 02:36:09 AM
List:com.googlegroups.opensocial-container

I've committed support for a proxy server in shindig, umm i think it was 2 days ago?

svn update and edit shindig/php/config/container.php and change the proxy key, like: 'proxy' => '192.168.1.1:8080'

(ofc use your proxy's IP and port and not the one from the example:P)

-- Chris

On Jun 27, 2008, at 10:14 AM, tuhin.barua wrote:

i think you probably need proxy support you can do this way.... open php/src/common/samplecontainer/ BasicRemoteContentFetcher.php and add this 2 line in fetchRequest() method after curl init

curl_setopt($request->handle, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($request->handle, CURLOPT_PROXY, 'http:// 10.80.2.13:80'); // here proxy server = 10.80.2.13 and port = 80 :)

On Jun 25, 8:39 pm, Alex <ahut@gmail.com> wrote:

I am trying to set up the php Shindig gadget server and keep getting this error when I test it by visiting http://<my server>/gadgets/ifr? url=http://www.labpixies.com/campaigns/todo/todo.xml

I originally got an error about being in safe_mode but I turned that off and it didn't fix the problem. Does anyone know why this would be happening or how I can fix it?

Thanks so much in advance. The error is below:

Error Failed to retrieve gadget content

Debug backtrace

Array ( [0] => Array ( [file] => /vol/web/shindig/trunk/php/src/gadgets/http/ GadgetRenderingServlet.php [line] => 76 [function] => outputError [class] => GadgetRenderingServlet [object] => GadgetRenderingServlet Object ( [context:private] => GadgetContext Object ( [httpFetcher:protected] => BasicRemoteContent Object ( )

[locale:protected] => [renderingContext:protected] => GADGET [registry:protected] => [userPrefs:protected] => [gadgetId:protected] => [view:protected] => profile [moduleId:protected] => 0 [url:protected]
=>http://www.labpixies.com/campaigns/todo/todo.xml [cache:protected] => [blacklist:protected] => BasicGadgetBlacklist Object ( [rules:private] => Array ( )

)

[ignoreCache:protected] => [forcedJsLibs:protected] => [containerConfig:protected] => [container:protected] => default [refreshInterval:protected] => )

[lastModified:private] => [contentType:private] => text/html [charset:private] => UTF-8 [noCache:private] => [cacheTime:private] => 86400 [noHeaders] => )

[type] => -> [args] => Array ( [0] => GadgetException Object ( [message:protected] => Failed to retrieve gadget content [string:private] => [code:protected] => 0 [file:protected] => /vol/web/shindig/ trunk/ php/src/gadgets/GadgetServer.php [line:protected] => 44 [trace:private] => Array ( [0] => Array ( [file] => /vol/web/ shindig/ trunk/php/src/gadgets/GadgetServer.php [line] => 31 [function] => specLoad [class] => GadgetServer [type] => -> [args] => Array ( [0] => GadgetContext Object (

[httpFetcher:protected] => BasicRemoteContent Object ( )

[locale:protected] =>

[renderingContext:protected] => GADGET

[registry:protected] =>

[userPrefs:protected] =>

[gadgetId:protected] =>

[view:protected] => profile

[moduleId:protected] => 0

[url:protected] =>http://www.labpixies.com/campaigns/todo/todo.xml

[cache:protected] =>

[blacklist:protected] => BasicGadgetBlacklist Object (

[rules:private] => Array

( )

)

[ignoreCache:protected] =>

[forcedJsLibs:protected] =>

[containerConfig:protected] =>

[container:protected] => default

[refreshInterval:protected] => )

)

)

[1] => Array ( [file] => /vol/web/ shindig/ trunk/php/src/gadgets/http/GadgetRenderingServlet.php [line] => 73 [function] => processGadget [class] => GadgetServer [type] => -> [args] => Array ( [0] => GadgetContext Object (

[httpFetcher:protected] => BasicRemoteContent Object ( )

[locale:protected] =>

[renderingContext:protected] => GADGET

[registry:protected] =>

[userPrefs:protected] =>

[gadgetId:protected] =>

[view:protected] => profile

[moduleId:protected] => 0

[url:protected] =>http://www.labpixies.com/campaigns/todo/todo.xml

[cache:protected] =>

[blacklist:protected] => BasicGadgetBlacklist Object (

[rules:private] => Array

( )

)

[ignoreCache:protected] =>

[forcedJsLibs:protected] =>

[containerConfig:protected] =>

[container:protected] => default

[refreshInterval:protected] => )

)

)

[2] => Array ( [file] => /vol/web/ shindig/ trunk/php/index.php [line] => 112 [function] => doGet [class] => GadgetRenderingServlet [type] => -> [args] => Array ( )

)

)

)

)

)

[1] => Array ( [file] => /vol/web/shindig/trunk/php/index.php [line] => 112 [function] => doGet [class] => GadgetRenderingServlet [object] => GadgetRenderingServlet Object ( [context:private] => GadgetContext Object ( [httpFetcher:protected] => BasicRemoteContent Object ( )

[locale:protected] => [renderingContext:protected] => GADGET [registry:protected] => [userPrefs:protected] => [gadgetId:protected] => [view:protected] => profile [moduleId:protected] => 0 [url:protected]
=>http://www.labpixies.com/campaigns/todo/todo.xml [cache:protected] => [blacklist:protected] => BasicGadgetBlacklist Object ( [rules:private] => Array ( )

)

[ignoreCache:protected] => [forcedJsLibs:protected] => [containerConfig:protected] => [container:protected] => default [refreshInterval:protected] => )

[lastModified:private] => [contentType:private] => text/html [charset:private] => UTF-8 [noCache:private] => [cacheTime:private] => 86400 [noHeaders] => )

[type] => -> [args] => Array ( )

)

)