The Fix
pip install stripe==2.32.1
Based on closed stripe/stripe-python issue #591 · PR/commit linked
Production note: Most teams hit this during upgrades or environment changes. Roll out with a canary and smoke critical endpoints (health, OpenAPI/docs) before 100%.
@@ -44,11 +44,13 @@ def instance_url(self):
return "%s/%s" % (base, extn)
+ # The `method_` and `url_` arguments are suffixed with an underscore to
+ # avoid conflicting with actual request parameters in `params`.
@classmethod
>> def foo(bar, **kwargs):
... pass
...
>> foo('a bar', bar='another bar')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: foo() got multiple values for keyword argument 'bar'
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.
Option A — Upgrade to fixed release\npip install stripe==2.32.1\nWhen NOT to use: This fix should not be used if the API parameters conflict with other method arguments.\n\n
Why This Fix Works in Production
- Trigger: [...snip...]
- Mechanism: Fixes a TypeError caused by argument name conflicts in the APIResource._static_request method.
- Why the fix works: Fixes a TypeError caused by argument name conflicts in the APIResource._static_request method. (first fixed release: 2.32.1).
- If left unfixed, the same config can fail only in production (env differences), causing startup failures or partial feature outages.
Why This Breaks in Prod
- Shows up under Python 2.7.10 in real deployments (not just unit tests).
- Surfaces as: Traceback (most recent call last):
Proof / Evidence
- GitHub issue: #591
- Fix PR: https://github.com/stripe/stripe-python/pull/592
- First fixed release: 2.32.1
- Reproduced locally: No (not executed)
- Last verified: 2026-02-08
- Confidence: 0.85
- Did this fix it?: Yes (upstream fix exists)
- Own content ratio: 0.53
Discussion
High-signal excerpts from the issue thread (symptoms, repros, edge-cases).
“Calling the .save(url=new_url) method on the returned hook object seems to work, though.”
“Thanks for the detailed report @alexei! We'll release a fix soon.”
Failure Signature (Search String)
- [...snip...]
Error Message
Stack trace
Error Message
-------------
Traceback (most recent call last):
[...snip...]
File "stripe/api_resources/abstract/updateable_api_resource.py", line 12, in modify
return cls._static_request("post", url, **params)
TypeError: _static_request() got multiple values for keyword argument 'url'
Stack trace
Error Message
-------------
>> def foo(bar, **kwargs):
... pass
...
>> foo('a bar', bar='another bar')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: foo() got multiple values for keyword argument 'bar'
Minimal Reproduction
>> def foo(bar, **kwargs):
... pass
...
>> foo('a bar', bar='another bar')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: foo() got multiple values for keyword argument 'bar'
Environment
- Python: 2.7.10
What Broke
Users experience TypeError when attempting to update webhooks, leading to failed requests.
Fix Options (Details)
Option A — Upgrade to fixed release Safe default (recommended)
pip install stripe==2.32.1
Use when you can deploy the upstream fix. It is usually lower-risk than long-lived workarounds.
Fix reference: https://github.com/stripe/stripe-python/pull/592
First fixed release: 2.32.1
Last verified: 2026-02-08. Validate in your environment.
When NOT to Use This Fix
- This fix should not be used if the API parameters conflict with other method arguments.
Verify Fix
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.
Did This Fix Work in Your Case?
Quick signal helps us prioritize which fixes to verify and improve.
Prevention
- Capture the exact failing error string in logs and tests so you can reproduce via a minimal script.
- Pin production dependencies and upgrade only with a reproducible test that hits the failing path.
Version Compatibility Table
| Version | Status |
|---|---|
| 2.32.1 | Fixed |
Related Issues
No related fixes found.
Sources
We don’t republish the full GitHub discussion text. Use the links above for context.