Forums/Community/Community Support

Answered

422 response with no errors

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

User photo
Jen M
Chargify Support

Hello Michael,

Thanks for contacting Chargify.

I am forwarding your message to our support team for their review.

Regards,

Jen M.

March 31, 2011 04:59 pm
User photo
Kori Francis
Chargify
Ajax_loader_small Answer

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

April 03, 2011 10:33 pm
User photo
Michael

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

April 03, 2011 11:21 pm
User photo
Kori Francis
Chargify

Hey Michael,

Hmm - can I take a look at the test itself?

-- Kori

April 04, 2011 01:17 pm
User photo
Michael

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

And I am on the home page
When I follow "See Plans & Pricing"
And I follow "Sign Up"
And I fill in "email" with "email@example.com"
And I fill in "First name" with "Billy"
And I fill in "Last name" with "Bob"
And I fill in "password" with "secret"
And I fill in "password confirmation" with "secret"
And I fill in unauthorized credit card information
And I press "Sign Up"
Then I should see "1 error prohibited this user from being saved"
Then I should see "Forced storage failure"

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.

April 05, 2011 09:09 pm
User photo
Michael

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?

April 05, 2011 09:12 pm
User photo
Kori Francis
Chargify
Ajax_loader_small Answer

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

April 06, 2011 12:11 am
User photo
Michael Klett
Chargify Support

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.

April 06, 2011 01:59 am
User photo
Joe Minock

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?

August 09, 2011 02:36 am
User photo
Andreas Bean

Hi, I'm getting the same error when trying to reactivate a cancelled subscription

September 29, 2011 01:10 am
User photo
Bob Bigglesworth

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.

October 21, 2011 02:32 pm
User photo
Jeff Schneller

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?  

December 30, 2011 12:33 am