[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-13 Thread David Ripplinger
I thought I'd let other people know what I'm doing for a workaround. Until it comes time for me to purchase a paid account with pythonanywhere, I plan to add a variable to my app called FREE_PA_ACCOUNT and set it to true. Then any time I have code that attempts to do a charge, refund, check, or

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-13 Thread Alan Etkin
> They tried adding it to the whitelist, but it still had bugs because there were issues with whatever Python API was being used (probably > on the end of both pythonanywhere and stripe) to handle https requests, since the pythonanywhere free user account goes through a > proxy server. In that

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-12 Thread David Ripplinger
Got word back from pythonanywhere. They tried adding it to the whitelist, but it still had bugs because there were issues with whatever Python API was being used (probably on the end of both pythonanywhere and stripe) to handle https requests, since the pythonanywhere free user account goes thr

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
I found the message from the u.read(). It is an html message: --- ERROR The requested URL could not be retrieved -- The

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread Alan Etkin
> > Here's the traceback ... > > File "/home/davidrip/web2py/gluon/contrib/stripe.py", line 46, in charge > > According to the simplejson error, the u object pulled from the url is returning mangled json input (or not json at all). Maybe you could examine the u.read() output of line 46 in st

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
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"

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread Alan Etkin
> 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 bec

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
Update: I just downloaded web2py onto my local machine and ran it with the gluon.contrib.stripe code successfully. So it seems that my error is specific to running it on pythonanywhere. On Thursday, April 11, 2013 1:55:49 PM UTC-4, David Ripplinger wrote: > > Just to see if I could get it to wor