This looks like a bug in fetch on GAE. It is returning the twitter
page but not in JSON.
It is returning this:

   http://twitter.com/web2py

instead of this:

   http://twitter.com/web2py?format=json

One more test please:

from google.appengine.api.urlfetch import fetch
def my test():
    page = fetch('http://twitter.com/
web2py',payload='format=json').content
    return page

do you get JSON?


Massimo

On Nov 23, 11:22 am, Leandro - ProfessionalIT <lsever...@gmail.com>
wrote:
> On Nov 23, 3:06 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > Sorry to do this to you....
>
> Hey Master no problems ! I love Web2Py and I think our community is
> very caring.
>
> > try:
>
> > def my test():
> >     import gluon.tools
> >     page = gluon.tools.fetch('http://twitter.com/web2py?format=json')
> >     return page
>
> > see if what fetch is getting.
>
> Look, run OK.http://www.leandro.inf.br/init/default/my_test
>
> - Leandro.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to