mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[GH-ISSUE #14171] issue: "not all arguments converted during string formatting" during tool call (reproduceable) #32694
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 @Jenscaasen on GitHub (May 22, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14171
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.10
Ollama Version (if applicable)
No response
Operating System
Linux Mint
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
Adding a Toolserver with OpenAPI v3 definition > Using Tool > Tool can be used
v3schemaswagger.json
Check with POSTMAN:
POST https://server/api/restcalls/b594cd8c-d580-4073-8731-e1119a628425
Body: {}
works
Other openapi tools use that definition successfully as well.
Connection verifies (no cors problem):

Actual Behavior
Adding a Toolserver with OpenAPI v3 definition > Using Tool >
log.txt

(can not share more logs)
Upon checking the server logs the call also never arrives at the destination server. Furthermore, the message "not all arguments converted during string formatting" is a python error, where the target server is implemented in .net. When loading the json with an invalid API Server address, the validation succeeds and the same error occurs when running the tool.
Additionally, as the screenshot shows, the error message is given with the request JSON, the response JSON actually looks different. So i guess there is some problem with sending JSON as POST body?
Steps to Reproduce
Logs & Screenshots
added above
also more browser logs:
console-export-2025-5-22_16-43-29.txt
Additional Information
This looks kind of fishy to me in the browser output, but maybe thats intended (arguments=""{}"", having quotes inside the arguments). Could not find that in the server logs tho
@tjbck commented on GitHub (May 22, 2025):
I'm guessing this is accessed via Direct Tools, I'd highly suggest you check your network tab to see whether the webui is making a correct network request.