Skip to content

Meta Ads (Facebook/Instagram) MCP server for Claude, ChatGPT, Perplexity & Cursor — the Meta node of Pipeboard’s 5-platform family (+ Google, TikTok, Snap, Reddit). Hosted remote MCP, badged Meta Business Partner, free plan — no self-hosting required.

fix: increase duplication HTTP timeout from 30s to 120s

Yves Junqueira73b0ddcb0d5c
diff --git a/meta_ads_mcp/core/duplication.py b/meta_ads_mcp/core/duplication.py
index 55e8058..4910742 100644
--- a/meta_ads_mcp/core/duplication.py
+++ b/meta_ads_mcp/core/duplication.py
@@ -244,7 +244,7 @@ async def _forward_duplication_request(resource_type: str, resource_id: str, acc
clean_options = {k: v for k, v in options.items() if v is not None}
# Make the request to the cloud service
- async with httpx.AsyncClient(timeout=30.0) as client:
+ async with httpx.AsyncClient(timeout=120.0) as client:
response = await client.post(
endpoint,
headers=headers,
@@ -389,7 +389,7 @@ async def _forward_duplication_request(resource_type: str, resource_id: str, acc
"message": "Request to duplication service timed out",
"details": {
"suggestion": "Please try again later",
- "timeout": "30 seconds"
+ "timeout": "120 seconds"
}
}, indent=2)
diff --git a/tests/test_duplication_regression.py b/tests/test_duplication_regression.py
index 8171d2b..e795d38 100644
--- a/tests/test_duplication_regression.py
+++ b/tests/test_duplication_regression.py
@@ -201,8 +201,8 @@ class TestDuplicationAPIContract:
"campaign", "123456789", "test_token", {}
)
- # Verify timeout is set to 30 seconds
- mock_client.assert_called_once_with(timeout=30.0)
+ # Verify timeout is set to 120 seconds
+ mock_client.assert_called_once_with(timeout=120.0)
class TestDuplicationErrorHandling: