Skip to content
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

api/v1/stripe/donate fails (page blanche retournée) si la carte bleue est rejetée #3

Open
thibauld opened this issue Feb 17, 2016 · 0 comments

Comments

@thibauld
Copy link
Contributor

Stripe avait gardé en mémoire mon ancienne CB qui a expiré depuis ce qui fait ma CB a été déclinée.
Au lieu de recevoir un message d'erreur, j'ai eu le droit a une page blanche sans aucun message.

Voici le message d'erreur retourné par l'API

E, [2016-02-16T23:39:47.855170 #27421] ERROR -- : app error: Your card was declined. (Stripe::CardError)
E, [2016-02-16T23:39:47.855416 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/stripe-1.31.0/lib/stripe.rb:273:in `handle_api_error'
E, [2016-02-16T23:39:47.855464 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/stripe-1.31.0/lib/stripe.rb:152:in `rescue in request'
E, [2016-02-16T23:39:47.855497 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/stripe-1.31.0/lib/stripe.rb:138:in `request'
E, [2016-02-16T23:39:47.855517 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/stripe-1.31.0/lib/stripe/api_operations/request.rb:15:in `request'
E, [2016-02-16T23:39:47.855535 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/stripe-1.31.0/lib/stripe/api_operations/create.rb:5:in `create'
E, [2016-02-16T23:39:47.855559 #27421] ERROR -- : /home/democratech/api/api/stripe_v1.rb:55:in `block (2 levels) in <class:StripeV1>'
E, [2016-02-16T23:39:47.855579 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:47:in `call'
E, [2016-02-16T23:39:47.855597 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:47:in `block in generate_api_method'
E, [2016-02-16T23:39:47.855613 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:247:in `call'
E, [2016-02-16T23:39:47.855647 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:247:in `run'
E, [2016-02-16T23:39:47.855666 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:195:in `block in call!'
E, [2016-02-16T23:39:47.855684 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/base.rb:24:in `call'
E, [2016-02-16T23:39:47.855709 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/base.rb:24:in `call!'
E, [2016-02-16T23:39:47.855728 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/base.rb:18:in `call'
E, [2016-02-16T23:39:47.855746 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/base.rb:24:in `call!'
E, [2016-02-16T23:39:47.855763 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/base.rb:18:in `call'
E, [2016-02-16T23:39:47.855786 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/error.rb:27:in `block in call!'
E, [2016-02-16T23:39:47.855806 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/error.rb:26:in `catch'
E, [2016-02-16T23:39:47.855825 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/error.rb:26:in `call!'
E, [2016-02-16T23:39:47.855842 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/middleware/base.rb:18:in `call'
E, [2016-02-16T23:39:47.855858 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
E, [2016-02-16T23:39:47.855889 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'
E, [2016-02-16T23:39:47.855908 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:196:in `call!'
E, [2016-02-16T23:39:47.855931 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/endpoint.rb:184:in `call'
E, [2016-02-16T23:39:47.855961 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
E, [2016-02-16T23:39:47.855980 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
E, [2016-02-16T23:39:47.855997 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `optimized_each'
E, [2016-02-16T23:39:47.856013 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
E, [2016-02-16T23:39:47.856034 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
E, [2016-02-16T23:39:47.856054 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/api.rb:98:in `call'
E, [2016-02-16T23:39:47.856071 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/api.rb:33:in `call!'
E, [2016-02-16T23:39:47.856087 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/grape-0.12.0/lib/grape/api.rb:29:in `call'
E, [2016-02-16T23:39:47.856115 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/rack-cors-0.4.0/lib/rack/cors.rb:80:in `call'
E, [2016-02-16T23:39:47.856142 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:580:in `process_client'
E, [2016-02-16T23:39:47.856159 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:660:in `worker_loop'
E, [2016-02-16T23:39:47.856175 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:527:in `spawn_missing_workers'
E, [2016-02-16T23:39:47.856191 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/unicorn-4.7.0/lib/unicorn/http_server.rb:153:in `start'
E, [2016-02-16T23:39:47.856215 #27421] ERROR -- : /var/lib/gems/2.0.0/gems/unicorn-4.7.0/bin/unicorn:126:in `<top (required)>'
E, [2016-02-16T23:39:47.856232 #27421] ERROR -- : /usr/local/bin/unicorn:23:in `load'
E, [2016-02-16T23:39:47.856248 #27421] ERROR -- : /usr/local/bin/unicorn:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant