MultiValueDictKeyError: 'stripeToken'
Closed this issue · 3 comments
sentry-io commented
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
Hello! I am working on this issue
Nandika-A commented
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
Hello @amakarudze! This issue is fixed in PR#938. Could you please check if any changes need to be made?