-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
3.27.0.GA, 3.27.1.CR2
-
False
-
-
False
-
-
---
-
-
I got the following error when running samples/mcp tools tests:
dev.langchain4j.exception.ToolExecutionException: Error: Invalid arguments for read_file: [ { "expected": "string", "code": "invalid_type", "path": [ "path" ], "message": "Invalid input: expected string, received undefined" } ]
It looks like this error always happens on OSes, which run on VMs. I was able to reproduce it on RHEL on Openstack VM as well as Fedora and Ubuntu on podman and was not able to reproduce it on a bare-metal Fedora.
According to the logs, it is caused on Quarkus/Langchain4j side, which sends an empty request to the tool: Attempting to execute tool ToolExecutionRequest { id = "call_<edited>", name = "read_file", arguments = "{}" }. In usual conditions, the command looks differently: Attempting to execute tool ToolExecutionRequest { id = "call_<edited>", name = "read_file", arguments = "
" }
This issue affects both RHBQ and upstream of 3.27.0 and 3.27.1 but not 3.26.3
- links to