TechforgoodCAST / beehive-giving

A free funding suitability checking tool
https://www.beehivegiving.org
MIT License
2 stars 2 forks source link

Stripe::InvalidRequestError: Invalid source object: must be a dictionary or a non-empty string. See API docs at https://stripe.com/docs' #816

Closed suninthesky closed 5 years ago

suninthesky commented 5 years ago

View details in Rollbar: https://rollbar.com/beehive-giving/beehive-giving/items/281/



Faraday::ClientError: the server responded with status 400
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/response/raise_error.rb", line 13, in on_complete
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/response.rb", line 9, in block in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/response.rb", line 61, in on_complete
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/response.rb", line 8, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/request/url_encoded.rb", line 15, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/request/multipart.rb", line 15, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/rack_builder.rb", line 143, in build_response
  File "/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.15.4/lib/faraday/connection.rb", line 387, in run_request
  File "/app/vendor/bundle/ruby/2.5.0/gems/stripe-4.2.0/lib/stripe/stripe_client.rb", line 179, in block in execute_request
  File "/app/vendor/bundle/ruby/2.5.0/gems/stripe-4.2.0/lib/stripe/stripe_client.rb", line 225, in execute_request_with_rescues
  File "/app/vendor/bundle/ruby/2.5.0/gems/stripe-4.2.0/lib/stripe/stripe_client.rb", line 178, in execute_request
  File "/app/vendor/bundle/ruby/2.5.0/gems/stripe-4.2.0/lib/stripe/api_operations/request.rb", line 19, in request
  File "/app/vendor/bundle/ruby/2.5.0/gems/stripe-4.2.0/lib/stripe/api_operations/create.rb", line 7, in create
  File "/app/app/services/payment.rb", line 12, in process!
  File "/app/app/controllers/charges_controller.rb", line 10, in create
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/abstract_controller/base.rb", line 194, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/scout_apm-2.4.21/lib/scout_apm/instruments/action_controller_rails_3_rails4.rb", line 73, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb", line 132, in run_callbacks
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb", line 168, in block in instrument
  File "/app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications/instrumenter.rb", line 23, in instrument
  File "/app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb", line 168, in instrument
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal/instrumentation.rb", line 32, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal/params_wrapper.rb", line 256, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.2/lib/active_record/railties/controller_runtime.rb", line 24, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/scout_apm-2.4.21/lib/scout_apm/instruments/action_controller_rails_3_rails4.rb", line 86, in process_action
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/abstract_controller/base.rb", line 134, in process
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionview-5.2.2/lib/action_view/rendering.rb", line 32, in process
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal.rb", line 191, in dispatch
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_controller/metal.rb", line 252, in dispatch
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/routing/route_set.rb", line 52, in dispatch
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/routing/route_set.rb", line 34, in serve
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/journey/router.rb", line 52, in block in serve
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/journey/router.rb", line 35, in each
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/journey/router.rb", line 35, in serve
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/routing/route_set.rb", line 840, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/scout_apm-2.4.21/lib/scout_apm/instruments/rails_router.rb", line 29, in call_with_scout_instruments
  File "/app/vendor/bundle/ruby/2.5.0/gems/scout_apm-2.4.21/lib/scout_apm/middleware.rb", line 17, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-tracker-1.7.0/lib/rack/tracker.rb", line 36, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/warden-1.2.8/lib/warden/manager.rb", line 36, in block in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/warden-1.2.8/lib/warden/manager.rb", line 34, in catch
  File "/app/vendor/bundle/ruby/2.5.0/gems/warden-1.2.8/lib/warden/manager.rb", line 34, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/tempfile_reaper.rb", line 15, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/etag.rb", line 25, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/conditional_get.rb", line 38, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/head.rb", line 12, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/http/content_security_policy.rb", line 18, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb", line 232, in context
  File "/app/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/session/abstract/id.rb", line 226, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/middleware/cookies.rb", line 670, in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dispatch/middleware/callbacks.rb", line 28, in block in call
  File "/app/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb", line 98, in run_callbacks
  File "/app/vendor/bundle/ruby/2.5.0/gems/actionpack-5.2.2/lib/action_dis