Commit 415aa5a
committed
fix: add explicit timeout to OpenAPI tool httpx client
The migration from `requests` to `httpx.AsyncClient` in PR #2872 did not
specify a timeout parameter. Since `requests` defaults to no timeout
while `httpx` defaults to 5 seconds, this causes `ReadTimeout` errors
for API calls that take longer than 5 seconds.
Set timeout to `None` to restore the previous behavior.
Closes #44311 parent ec660ed commit 415aa5a
File tree
1 file changed
+2
-1
lines changed- src/google/adk/tools/openapi_tool/openapi_spec_parser
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
| 564 | + | |
564 | 565 | | |
565 | 566 | | |
0 commit comments