You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Boolean query parameters are sent as True/False, which the X API rejects with 400 (e.g. stream.update_rules(dry_run=False)) #8
Generated clients put Python bool values straight into the params dict passed to requests. requests serializes them with str(), so the query string carries dry_run=False / dry_run=True. The X API only accepts lowercase true / false and answers HTTP 400.
Reproduction
Seen in production with xdk 0.9.0. The code is unchanged in 0.10.6 (latest). Python 3.13, requests 2.33.
or one helper in the shared request path that maps bool values in params to "true" / "false". Since this code is generated, the fix probably belongs in the generator template (xdevplatform/xdk).
Workaround
Omit boolean query arguments entirely. The API then uses its defaults (for update_rules, the change is applied).
Activity