mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-11-12 22:20:33 +00:00
* fix(browserless): reject timeouts httpx cannot use `_coerce_timeout` forwarded any int, float or numeric string to `httpx.AsyncClient(timeout=...)` unchanged, so a configured `timeout_s: 0` or a negative value failed every fetch and capture with `ConnectTimeout` against a healthy backend, `nan` raised `ValueError: deadline must not be NaN`, and `inf` left the request without a deadline so it never completed. Each of those silently disabled the provider. Fall back to the documented 30s default with a warning when the number is not a usable deadline. This matches `crawl4ai._coerce_timeout` after #7481; `jina_ai._coerce_timeout` still forwards non-positive values. * fix(browserless): address timeout review and format tests Explain how HTTPX handles NaN and positive infinity. Document that Browserless accepts positive finite timeouts without an upper limit, and pin that behavior with a 1e308 test case. Crawl4AI and Jina timeout validation are tracked in #7481 and #7823. Remove the Browserless docstring's claim that Crawl4AI shares its coercion behavior. Format the test file for the backend lint check. --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>