Sorry to do this to you....

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.

On Nov 23, 10:34 am, Leandro - ProfessionalIT <lsever...@gmail.com>
wrote:
> Master Massimo,
>
>    Sorry, I forget of this detail. That dummie !.
>
> The GAE log:
>
> In FILE: /base/data/home/apps/leandro-inf/1.337957566746262675/
> applications/init/controllers/default.py
>
> Traceback (most recent call last):
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/gluon/
> restricted.py", line 184, in restricted
>     exec ccode in environment
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/
> applications/init/controllers/default.py:twitter", line 151, in
> <module>
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/gluon/
> globals.py", line 102, in <lambda>
>     self._caller = lambda f: f()
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/
> applications/init/controllers/default.py:twitter", line 75, in twitter
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/gluon/
> contrib/simplejson/__init__.py", line 305, in loads
>     return _default_decoder.decode(s)
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/gluon/
> contrib/simplejson/decoder.py", line 329, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/base/data/home/apps/leandro-inf/1.337957566746262675/gluon/
> contrib/simplejson/decoder.py", line 347, in raw_decode
>     raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
--~--~---------~--~----~------------~-------~--~----~
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