Skip to content

fix: forward timeout in child find_all - #428

Merged
vincent-pochet merged 1 commit into
mainfrom
fix/child-list-timeout
Oct 26, 2026
Merged

vincent-pochet merged 1 commit into
mainfrom
fix/child-list-timeout

Conversation

@vincent-pochet

Copy link
Copy Markdown
Contributor

Follow-up of #421, which fixed the missing Authorization header on the same call.

Context

FindAllChildrenCommandMixin.find_all accepts a misspelled timetour argument and never forwards it. The twelve child listings (customer_invoices, plan_charges, ...) ignore the caller's timeout and fall back to the 5 second httpx default, instead of the 10 second DEFAULT_TIMEOUT every other mixin uses.

Description

  • Add a timeout argument to child find_all, defaulting to DEFAULT_TIMEOUT like FindAllCommandMixin.find_all.
  • Forward it to the request.
  • Keep timetour as a keyword-only alias that emits a DeprecationWarning.

timetour is not forwarded as is: its None default would disable the httpx timeout entirely. A positional third argument keeps working and now maps to timeout.

Behavior change to be aware of

  • Child listings without a timeout now wait up to 10 seconds instead of 5.

closes #410

🤖 Generated with Claude Code

FindAllChildrenCommandMixin.find_all took a misspelled `timetour`
argument and never passed it to the request, so the twelve child
listings used the 5s httpx default instead of DEFAULT_TIMEOUT.

Add `timeout` with the DEFAULT_TIMEOUT default and forward it. Keep
`timetour` as a deprecated keyword-only alias; forwarding it as is
would disable the timeout through its None default.

Closes #410

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vincent-pochet
vincent-pochet merged commit 2484955 into main Oct 26, 2026
7 checks passed
@vincent-pochet
vincent-pochet deleted the fix/child-list-timeout branch October 26, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

find_all on child resources sends no Authorization header, so twelve methods return 401

2 participants