codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.1k stars 220 forks source link

Unable to Cancel CodeWars Red Subscription - Subscription Edit Page Errors on load #2993

Closed IntegerMan closed 1 year ago

IntegerMan commented 1 year ago

Describe the bug Going to CodeWars.com on mobile (Android) or desktop (Win 11 Edge) to manage an active CodeWars red subscription generates a 500 internal server error web page for my user at URL https://www.codewars.com/subscription/edit

To Reproduce

  1. Log in
  2. Click on your profile picture, then Account Settings
  3. Scroll down to Red Subscription and click Manage
  4. Observe error page

Expected behavior Not this. I should be able to see my active subscription and successfully cancel it.

Screenshots image

Browser Multiple. Observed most recently in Edge 112.0.1722.39

Additional context This bug occurs consistently and is preventing me from cancelling an active subscription that will charge me again should I be unable to cancel it.

My CodeWars profile page is at https://www.codewars.com/users/IntegerMan

kazk commented 1 year ago

Deployed a fix. Please try again and let me know.

IntegerMan commented 1 year ago

Still broken for me even after signing out and back in. I'm happy to try again tomorrow if you think it might take time to propagate.

kazk commented 1 year ago

Yeah, looks like I misunderstood the root cause. I guess you used https://stripe.com/payments/link to subscribe. This wasn't a supported payment method when our code was written, so it's failing to handle the unexpected value returned from Stripe.

I'll let you know when a fix is deployed.

kazk commented 1 year ago

Deployed. Let me know if this works. If not, I'll look into it again tomorrow.

IntegerMan commented 1 year ago

Thank you for the prompt iterations. It worked just fine! I appreciate your help.