Here's the traceback:

Traceback (most recent call last):
  File "/home/davidrip/web2py/gluon/restricted.py", line 212, in restricted
    exec ccode in environment
  File "/home/davidrip/web2py/applications/budget1/controllers/default.py" 
<https://davidrip.pythonanywhere.com/admin/default/edit/budget1/controllers/default.py>,
 line 181, in <module>
  File "/home/davidrip/web2py/gluon/globals.py", line 194, in <lambda>
    self._caller = lambda f: f()
  File "/home/davidrip/web2py/gluon/tools.py", line 2976, in f
    return action(*a, **b)
  File "/home/davidrip/web2py/applications/budget1/controllers/default.py" 
<https://davidrip.pythonanywhere.com/admin/default/edit/budget1/controllers/default.py>,
 line 82, in index
    description='the usual black shoes')
  File "/home/davidrip/web2py/gluon/contrib/stripe.py", line 46, in charge
    return simplejson.loads(u.read())
  File "/home/davidrip/web2py/gluon/contrib/simplejson/__init__.py", line 386, 
in loads
    return _default_decoder.decode(s)
  File "/home/davidrip/web2py/gluon/contrib/simplejson/decoder.py", line 403, 
in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/davidrip/web2py/gluon/contrib/simplejson/decoder.py", line 421, 
in raw_decode
    raise JSONDecodeError("No JSON object could be decoded", s, idx)
JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)

Since I discovered that it works fine when running the server from my local 
machine but not when hosted on pythonanywhere, I posted a question about it 
in pythonanywhere's forum. My guess is they have some quirk they have to 
fix with how web2py gets deployed on their machines.

On Thursday, April 11, 2013 7:56:47 PM UTC-4, Alan Etkin wrote:
>
> > I get the error "No JSON object could be decoded"
>
> Can you post the traceback (if any)? Since 2.0, there have been some small 
> changes in the way web2py handles JSON, for example importing serializers. 
> I'm almost sure that the stripe recipe predates them.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to