Increase httpx timeout for a Notion Tool (#358)

Increasing this helps with large pages
This commit is contained in:
Eric Gustin 2025-04-10 10:39:33 -08:00 committed by GitHub
parent 3a45d5fec0
commit a3ff278640
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -146,8 +146,9 @@ async def get_object_metadata(
async def get_metadata_by_id(object_id: str) -> dict[str, Any]:
url = get_url("retrieve_a_page", page_id=object_id)
headers = get_headers(context)
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=10) as client:
response = await client.get(url, headers=headers)
if response.status_code != 200:
raise ToolExecutionError(
message="The page or database could not be found.",

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "arcade_notion_toolkit"
version = "0.1.1"
version = "0.1.2"
description = "Arcade.dev LLM tools for Notion"
authors = ["ArcadeAI <dev@arcade.dev>"]