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
Spree::Core::GatewayError not caught by Spree::CheckoutController #3851
Comments
Please provide exact steps to reproduce this problem, as well as the other info from spree https://github.com/spree/spree/tree/master/CONTRIBUTING.md. On Thu, Oct 10, 2013 at 7:18 AM, Jim notifications@github.com wrote:
|
Configure
Test
You will see this uncatched exception : Error: Spree::Core::GatewayError
Using Spree 2.0.5 & Rails 3.2.14 Gemfile :
I get the issue, it's pretty straightforward, but I don't get why the exception is not caught by Spree::CheckoutController with |
I'm going to see if I can reproduce this problem now. |
Yes, I have been able to reproduce this issue. Even better than that, the fix is only a couple of lines. I've got it over in my fork on 2-0-stable, 2-1-stable and master. Once CI says it's happy, it'll be going into spree/spree and will be out in the new releases of Spree whenever we do them. Thanks for reporting this! |
Happy I could help! |
This makes the error messages when payments fail slightly less vague than they used to be. Fixes #3851
This makes the error messages when payments fail slightly less vague than they used to be. Fixes #3851
This didn't fix it for me. I still get an Error thrown in my face. My installation of Spree is mounted under /shop if that helps. Anyway, for now I'm just going to let the whole content of the update method in a begin/rescue block |
@jdurand Are you sure you're running on the latest Spree? Can you show me your Gemfile.lock entry for Spree please? |
I'm running Spree 2.0.5 from my own fork (for some reason I can't remember) and I keep it in sync with the 2-0-stable branch. Here's my Gemfile.lock :
|
So after checking I need to run from my own fork because I had to play with jquery-rails and aws-sdk gem versions to match my bundle... but that's it. |
Ok, everything's checking out here... I can't find any good reason for this patch not to work on your machine. Can you stick a |
That's the thing, |
Got it, something in BrowserCMS is catching the exception before Spree and blindly shows an error page... That's my problem now. |
No problem. Glad you were able to track that down :) On Fri, Oct 11, 2013 at 4:09 PM, Jim notifications@github.com wrote:
|
Using Spree v2.0.5,
Even if this is in Spree::CheckoutController :
I get Spree::Core::GatewayError thrown when entering a wrong credit card verification number using Spree::Gateway::BraintreeGateway
I had to wrap @order.update_attributes in a begin/rescue block in order to catch the exception :
Am I missing something?
The text was updated successfully, but these errors were encountered: