Hi Robert,

The list for any shindig related talk and support is
shindig-dev@incubator.apache.org, see
http://incubator.apache.org/shindig/community/getting-help.html for details

The don't be evil you are seeing there is something we've always included
(though it's usefulness is somewhat up for debate), the idea is that this
way the proxy can't be used as-is, since it would throw a 'don't be evil'
error if someone tried. As you found, that string is stripped from the
response on the client side before it's processed, so it doesn't reach your
gadget's code.

So that leaves the other issue, that the processing of slashdot's RSS feed
seems to fail (body:null, ie it didn't get a response it thinks), this could
either be because they are using some funky redirect that the curl based
implementation doesn't understand, or it could be that php-shindig's feed
parser breaks on that feed. If I would have to guess I'd say it's probably
the first option.

Try fetching a normal url (just plain old get on a webpage), and see if that
works... if so the http fetching code is fine and you can reach external
resources, in which case you know it's one of the 2 options i've mentioned
above.

Good luck & let us know how it works out!

   -- Chris

On Wed, May 13, 2009 at 6:54 AM, rgravina <robert.grav...@gmail.com> wrote:

>
> I've setup PHP Shindig and Partuza to help test my opensocial apps.
> Simple hello world apps work fine. However, when I try to run any app
> which does a  gadgets.io.makeRequest to get some RSS feed I see these
> errors in Firebug:
>
> E.g. trying to get the RSS feed of Slashdot (http://rss.slashdot.org/
> Slashdot/slashdot <http://rss.slashdot.org/%0ASlashdot/slashdot>) I see a
> successful GET request with this being the
> response:
>
> throw 1; < don't be evil' >{"http:\/\/rss.slashdot.org\/Slashdot\/
> slashdot":{"body":null,"rc":200}}
>
> Followed by a syntax error which occurs on the second of these two
> lines (it's hard to tell where exactly there are, but grepping shows
> it to be in features/src/main/javascript/features/core.io/io.js:
>
> var UNPARSEABLE_CRUFT="throw 1; < don't be evil' >";function
> processResponse(url,callback,params,xobj){if(hadError(xobj,callback))
> {return;}
> var txt=xobj.responseText;txt=txt.substr(UNPARSEABLE_CRUFT.length);var
> data=eval("("+txt+")");data=data[url];if(data.oauthState)
> {oauthState=data.oauthState;}
>
> Does anyone have any idea what is going on?
>
> Robert
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "OpenSocial Application Development" group.
> To post to this group, send email to opensocial-...@googlegroups.com
> To unsubscribe from this group, send email to
> opensocial-api+unsubscr...@googlegroups.com<opensocial-api%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/opensocial-api?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>

Reply via email to