fix(sync): shrink Gmail fetch page to avoid Composio 413#73
Conversation
GMAIL_FETCH_EMAILS with include_payload=true returns full message bodies, so a 50-message page overflows Composio's tool-response size cap (HTTP 413 Payload Too Large). Lower the default page_size to 25, which stays under the cap while matching the default item budget. Verified live: gmail sync went from 413 to PASS with 25 documents ingested. Claude-Session: https://claude.ai/code/session_01AtynpEKn3QZJKZYvL8uDNR
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Comment |
Summary
Follow-up to #71. Live Gmail sync failed with HTTP 413 Payload Too Large from
Composio's execute endpoint.
GMAIL_FETCH_EMAILSis called withinclude_payload: true, so each page returnsfull message bodies. A 50-message page overflows Composio's tool-response size
cap. Verified against a real mailbox:
max_results(include_payload: true)Lower the Gmail pipeline's default
page_sizefrom 50 to 25 (which alsomatches the default per-toolkit item budget). Callers needing more throughput can
still raise it via
with_limits.Testing
cargo test --features sync --test composio_sync_mock— 12 passed.COMPOSIO_TOOLKITS=gmail cargo run --example composio_harness --features sync→ was
413, now PASS, 25 documents ingested.https://claude.ai/code/session_01AtynpEKn3QZJKZYvL8uDNR