mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-23 12:15:22 -04:00
issue: random "not all arguments converted during string formatting" error #75
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?
Originally created by @elct9620 on GitHub (May 30, 2025).
Check Existing Issues
mcpo Version
Docker Image
git-27af7a6Open WebUI Version (if applicable)
v0.6.13
Operating System
macOS Sequoia
Browser (if applicable)
Chrome 136.0.7103.114
Confirmation
README.md.Expected Behavior
When using the tool to call MCP via MCPO, it can return the MCP response correctly.
Actual Behavior
Randomly failed when using SSE/Streamable HTTP MCP Server.
The response will show the
"not all arguments converted during string formatting"Steps to Reproduce
nativeLogs & Screenshots
MCPO
MCP Server
Use the official
FastMCPto build this MCP ServerAdditional Information
Using
n8nto connect the MCP server via SSE works correctly.@taylorwilsdon commented on GitHub (May 31, 2025):
Do you have the type declaration for SSE in place? Hard to say without seeing the MCP code and the config.json you're using to start mcpo (or the command string if doing a one liner)
@elct9620 commented on GitHub (May 31, 2025):
@taylorwilsdon
The
config.jsonis hereThe
perplexity-askserver is implemented here https://github.com/elct9620/perplexity-ask-openrouterFinlab isn't an open-source project, but it is simple for now.
@taylorwilsdon commented on GitHub (May 31, 2025):
Hm that all looks fine to me, do the other SSE endpoints you've got in MCPO work or are they all failing the same way?
@elct9620 commented on GitHub (May 31, 2025):
I make some tests for the listed tools:
finlab-> can trigger this errortime-> work correctlyfetch-> work correctlycf-docs-> can trigger this errorperplexity-ask-> can trigger this errorIt looks like the
stdiomode is more stable.@taylorwilsdon commented on GitHub (May 31, 2025):
Interesting, so its all the remote ones? This may be a configuration issue on your host then, because I just tried the public one (cloudflare) with an exact copy paste from your config and it works perfectly
@elct9620 commented on GitHub (May 31, 2025):
I just put it inside
docker-compose.ymlwith Open WebUI inside a virtual machine. Other VMs running n8n can work correctly.@elct9620 commented on GitHub (May 31, 2025):
I make another test after restarting the MCPO server.
The
cf-docscan work correctly for now. But thefinlabstill got the error. I'm still not sure why it randomly receives the error.Update:
The remote server can work correctly after the restart.
I guess it may related to my server have some network problem, but MCPO didn't reconnect to MCP and still keep connection not work any more 🤔
@ghostrider0470 commented on GitHub (Jun 2, 2025):
I have the same exact issue remote servers stop working even when on streamable http. I believe it's likely due to timeout and not reconnecting.
@ghostrider0470 commented on GitHub (Jun 2, 2025):
Remote servers work fine until this happens, so only method to resolve this is to manually restart the container of mcpo
@elct9620 commented on GitHub (Jun 2, 2025):
If my problem can be reproduced, I also want to discuss making each request have a separate session ID.
The newer MCP design (Streamable HTTP) supports identity users by session ID, provided that all users on the Open Web UI use the same session ID. It may cause some problems in the future.
@martijnn commented on GitHub (Jun 11, 2025):
I just experienced this error message too. In the logging of my mcpo container I see that the tool call is done with empty values.
Perhaps this is a shortcoming of open-webui as mcp client, because when I ask the same question via Claude Desktop or Cursor, I can have a sensible conversation via my remote mcp server.
It might help to see what the calls look like 'underwater'. In any case, I am not convinced to have mcpo as an intermediate step for accessing (remote) MCP servers.
@martijnn commented on GitHub (Jun 12, 2025):
Related https://github.com/open-webui/open-webui/pull/14893
@ocelotpa commented on GitHub (Jun 13, 2025):
This issue has also troubled me for a long time. The situation is that as long as MCPO becomes idle for half an hour, this error message keeps popping up persistently,the only way to fix it seems like restarting the container.
@Baronco commented on GitHub (Jun 13, 2025):
I am experiencing the same issue, with tools returning the error: "not all arguments converted during string formatting" after running for a few hours. The request payload looks like this:
My MCP servers are remote SSE types, deployed as Azure Functions. When I check their logs, I see no incoming calls from MCPO. Additionally, when validating the connection and response via the MCP Inspector, the MCP servers deployed in Azure Functions seem to be working correctly!
We deploy MCPO using its official Docker image on an Azure Web App. When the tool responses return the error "not all arguments converted during string formatting", the MCPO logs show the following:
Additional info: From the Open Web UI Tools panel, connection validation returns:
2025-06-13T13:02:03.7954103Z INFO: 169.254.136.1:41573 - "GET /sharepoint/openapi.json HTTP/1.1" 200 OKAlso, the MCPO logs include:
2025-06-13T13:00:01.9839539Z INFO: 169.254.136.1:15989 - "GET / HTTP/1.1" 404 Not FoundOpen WebUI Version: v0.6.13
Does anyone know if this issue is specific to MCPO or if it is related to Open Web UI? I am confident it is not my functions since they provide correct responses both from the MCP Inspector and also within VSCode!
@sir3mat commented on GitHub (Aug 8, 2025):
follow
@taylorwilsdon commented on GitHub (Aug 8, 2025):
This was resolved in a previous version and merged here https://github.com/open-webui/open-webui/pull/14893 if you're seeing a similar issue please open a new issue with a description of the problem @sir3mat !