mirror of
https://github.com/run-llama/notebookllama.git
synced 2026-07-16 07:04:28 -04:00
[PR #29] [MERGED] Fix: Increase MCP Client Timeout to Prevent Processing Errors #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/notebookllama/pull/29
Author: @nick-galluzzo
Created: 7/12/2025
Status: ✅ Merged
Merged: 7/12/2025
Merged by: @AstraBert
Base:
main← Head:fix/extract_file_data📝 Commits (1)
481e334fix: Increase MCP client timeout to 120s📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/notebookllama/workflow.py(+1 -1)📄 Description
This PR addresses the recurring timeout error where processing larger documents fails after 30 seconds. The error
mcp.shared.exceptions.McpError: Timed out while waiting for response to ClientRequestoccurs during theextract_file_datastep because the server-side processing takes longer than the client's default timeout.Before:
After:
The Fix
This is a quick-fix that increases the timeout for the
BasicMCPClientfrom 30 seconds to 120 seconds. This provides a more generous and stable window for the server to complete its work, preventing the premature timeout and improving the user experience.Future Work
While this hot fix immediately resolves the issue for users, a more robust long-term solution can still be explored. Potential improvements include:
extract_file_dataworkflow to reduce processing time.I'll start working on this, but in the meantime, this hot-fix should resolve our current issues.
Related Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.