Michael
asked this on March 31, 2011 02:49 pm
I was running the tests for my application today, and one of my tests is failing because the call to create a subscription is failing with a 422 (which is intended, this is an error case test), but no errors are returned (which is incorrect, it should be returning an error saying "Forced storage failure").
On my Chargify test site, the subscription create failure is showing up correctly in the activity stream, it is just that no errors are returned in the response xml. I'm using the latest version of chargify_api_ares (0.3.9), running on activeresource 2.3.11. Any ideas as to what is going on? This test worked correctly as of at least few weeks ago (could be sooner - I don't know exactly when the last time these tests were run), and nothing on my side has changed.
Comments
Hello Michael,
Thanks for contacting Chargify.
I am forwarding your message to our support team for their review.
Regards,
Jen M.
Michael,
There's nothing that I can think of that would have caused that sort of issue, have you encountered it again since then?
-- Kori
The same test is continuing to fail in the exact same way. It is not intermittent, the test has failed every time I have run it since I discovered the issue. I am 99% confident that it is a new bug on your end, introduced sometime between 3/17/2011 (the last time tests were run and they passed) and 3/31/2011 (first time the tests were run since 3/17, and the test fails).
Thank you,
Michael Kuehl
Hey Michael,
Hmm - can I take a look at the test itself?
-- Kori
It is a cucumber test, so I'm not sure how helpful this will be:
@shouldwork @failure_case Scenario: Try to create a paid account but with bad credit card info
The problem is that since there are no errors reported from Chargify on the subscription create (even though the create does fail with a 422 error), the error text "Forced storage failure" (which chargify used to return) is not shown.
I just ran the test again, as I have been every day since it started failing, and today the test passed. Absolutely nothing has changed on my end - from when it was working, to when it started failing, to now when it works again. Did you guys fix a bug on your end?
Michael,
I know they have been making some changes to the API lately, so this may have been affected. Just let me know if your tests fail again.
-- Kori
This is really weird - nothing was fixed or changed in this particular area of the codebase as far as I know. I'll review our recent releases and see if any pattern jumps out.
Hi Kori, I'm getting a very similar issue, having the 422 error without a response. I'm having this issue when trying to create a new subscription via the API. Nothing is returning and the issue is consistent on our end. Any help?
Hi, I'm getting the same error when trying to reactivate a cancelled subscription
I get the same same 422 with no error message when attempting to update an existing credit card. The card does successfully get updated in your system but the error gets thrown. This is in the sandbox, if that makes any difference. My application is not live yet so I haven't tested the live system.
I am having the same issue when creating a subscription via the json API. I am able to create a subscription using the gui interface. So I expect it is something in the json request that is the problem. Any ideas?