DjangoGirls / djangogirls

Website for DjangoGirls.org
http://djangogirls.org/
BSD 3-Clause "New" or "Revised" License
465 stars 286 forks source link

MultiValueDictKeyError: 'stripeToken' #920

Closed sentry-io[bot] closed 9 months ago

sentry-io[bot] commented 11 months ago

Sentry Issue: DJANGO-GIRLS-WEBSITE-5W

KeyError: 'stripeToken'
  File "django/utils/datastructures.py", line 76, in __getitem__
    list_ = super().__getitem__(key)

MultiValueDictKeyError: 'stripeToken'
  File "donations/views.py", line 33, in charge
    email=request.POST["email"], name=request.POST["name"], source=request.POST["stripeToken"]
Nandika-A commented 10 months ago

Hello! I am working on this issue

Nandika-A commented 10 months ago

This error is an internal server error (500). When I was testing, it worked fine for me but this error can occur because of stripe.js not getting loaded in test mode. Ways of handling this are provided in the stripe documentation. Here are the links: Connection errors Idempotent requests Can I get to know more specifically the steps of producing this error, so that it could be handled in the correct way?

Nandika-A commented 9 months ago

Hello @amakarudze! This issue is fixed in PR#938. Could you please check if any changes need to be made?