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

Stripe::InvalidRequestError: A canceled subscription can only update its cancellation_details. #7748

Closed
komagata opened this issue May 1, 2024 · 2 comments
Labels

Comments

@komagata
Copy link
Member

komagata commented May 1, 2024

View details in Rollbar: https://app.rollbar.com/a/komagata/fix/item/Bootcamp/1651


Stripe::InvalidRequestError: A canceled subscription can only update its cancellation_details.
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/stripe_client.rb", line 722, in handle_error_response
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/stripe_client.rb", line 586, in execute_request_with_rescues
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/stripe_client.rb", line 498, in execute_request_internal
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/stripe_client.rb", line 216, in execute_request
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/api_operations/request.rb", line 52, in execute_resource_request_internal
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/api_operations/request.rb", line 9, in execute_resource_request
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/api_operations/request.rb", line 28, in request_stripe_object
  File "/usr/local/bundle/gems/stripe-10.1.0/lib/stripe/api_operations/save.rb", line 27, in update
  File "/app/app/models/subscription.rb", line 29, in destroy
  File "/app/app/controllers/hibernation_controller.rb", line 43, in destroy_subscription!
  File "/app/app/controllers/hibernation_controller.rb", line 18, in create
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 228, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 117, in block in run_callbacks
  File "/usr/local/bundle/gems/react-rails-3.1.1/lib/react/rails/controller_lifecycle.rb", line 33, in use_react_component_helper
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 37, in block (3 levels) in <module:Filter>
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 25, in run_with
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 36, in block (2 levels) in <module:Filter>
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/actiontext-6.1.4.7/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/usr/local/bundle/gems/actiontext-6.1.4.7/lib/action_text/engine.rb", line 59, in block (4 levels) in <class:Engine>
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 137, in run_callbacks
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb", line 203, in block in instrument
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb", line 203, in instrument
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/instrumentation.rb", line 33, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 249, in process_action
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/railties/controller_runtime.rb", line 27, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 165, in process
  File "/usr/local/bundle/gems/actionview-6.1.4.7/lib/action_view/rendering.rb", line 39, in process
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 190, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 254, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 50, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 33, in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 50, in block in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 32, in each
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/journey/router.rb", line 32, in serve
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/routing/route_set.rb", line 842, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 202, in call!
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 169, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 202, in call!
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/strategy.rb", line 169, in call
  File "/usr/local/bundle/gems/omniauth-2.1.1/lib/omniauth/builder.rb", line 44, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/tempfile_reaper.rb", line 15, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/etag.rb", line 27, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/conditional_get.rb", line 40, in call
  File "/usr/local/bundle/gems/rack-user_agent-0.5.3/lib/rack/user_agent.rb", line 16, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/head.rb", line 12, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/http/permissions_policy.rb", line 22, in call
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_dispatch/http/content_security_policy.rb", line 18, in call
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb", line 266, in context
  File "/usr/local/bundle/gems/rack-2.2.8.1/lib/rack/session/abstract/id.rb", line 260, in call
  File "/usr/
@komagata komagata added the バグ label May 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

このissue|PRは60日間更新がないため7日後にcloseします。closeしたくない場合はstaleラベルを外してください。

@github-actions github-actions bot added the stale label Jul 1, 2024
Copy link

github-actions bot commented Jul 9, 2024

このissue|PRはstaleラベルを付けた後7日間更新がないためcloseしました。

@github-actions github-actions bot closed this as completed Jul 9, 2024
@komagata komagata removed the stale label Jul 9, 2024
@komagata komagata moved this to 完成 in bootcamp Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant