-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel subscription call returns JSON error? #9
Comments
Can you print the response out without doing inspect + raising? And could you check the type of what's returned? |
when i do a "puts response.body" I get: {"subscription_plan_id":1029356427} I added the following code to debug insidewepay.rb:
And this is what i get : DESTROYING SUBSCRIPTION Call: #Net::HTTP::Post:0x007f8ec958edf0 Not sure why i'm getting two calls there? On Sep 15, 2014, at 5:55 PM, Scott Feinberg notifications@github.com wrote:
|
What's weird is that none of the IDs match up... @vasusen what do you think? |
Im creating and deleting a subscription each time i run a test
|
I'm wondering if there's a race condition here. Can you add a 10 second On Mon, Sep 15, 2014 at 4:24 PM, robmomary notifications@github.com wrote:
|
I can - but i got the same response after i did a delete in the app (not testing) - the record had been created a while ago
|
Just trying to rule out the 500 error On Mon, Sep 15, 2014 at 4:29 PM, robmomary notifications@github.com wrote:
|
Hey there, I just added "sleep 10" before the call, got this: DESTROYING SUBSCRIPTION On Sep 15, 2014, at 6:30 PM, Scott Feinberg notifications@github.com wrote:
|
any update on this? |
Sorry for the delay here-had to dive into this. While it correctly deletes the subscription, there appears to be a bug on our side that's returning 500. We're working on a fix and will let you know once it's resolved. The SDK is retrying after it gets 500 the first time, which is what you're seeing. Sorry about that! Will let you know once we have a resolution. |
ping :) |
Getting the same error when I make a call to '/user'
|
Hi,
Using rails 4.1.0, wepay 0.0.3
ONLY when I call a cancel subscription call, i am getting this error:
JSON::ParserError:
A JSON text must at least contain two octets!
When i do a raise on the response.body object (raise response.body.inspect) I get this:
"{"subscription_plan_id":1425787008}"
The JSON looks ok. Also, when I do:
JSON.parse("{"subscription_plan_id":1425787008}")
It parses just fine? I am totally stumped as to why I'm getting this error. Anyone else having this problem?
The text was updated successfully, but these errors were encountered: