Jump to solution
Verify

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%.

Jump to Verify Open PR/Commit
@@ -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
repro.py
>> 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'
verify
Re-run the minimal reproduction on your broken version, then apply the fix and re-run.
fix.md
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).
Production impact:
  • 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

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.”
@alexei · 2019-07-04 · source
“Thanks for the detailed report @alexei! We'll release a fix soon.”
@ob-stripe · 2019-07-07 · source

Failure Signature (Search String)

  • [...snip...]

Error Message

Stack trace
error.txt
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.txt
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

repro.py
>> 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

When NOT to use: This fix should not be used if the API parameters conflict with other method arguments.

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.

Get updates

We publish verified fixes weekly. No spam.

Subscribe

When NOT to Use This Fix

  • This fix should not be used if the API parameters conflict with other method arguments.

Verify Fix

verify
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

VersionStatus
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.