Issue with HTTP Request Tool

I’m trying to retrive a json from out backend, this json contains a list of doctors from our platform. The node fails with “Received tool input did not match expected schema” whitout any additional feedback. It’s a simple unauthenticated GET request (I have copied an example output to pastebin if you want to try it out).

Any idea?

Workflow

Last node output

Item Index

0

Node type

@n8n/n8n-nodes-langchain.openAi

Node version

1.5 (Latest)

n8n version

1.61.0 (Self Hosted)

Time

4/10/2024, 17:57:58

Stack trace

NodeOperationError: Received tool input did not match expected schema at Object.router (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/vendors/OpenAi/actions/router.js:86:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/vendors/OpenAi/OpenAi.node.js:16:16) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:711:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1141:20
  • n8n version: latest (1.61.0)
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: linux (ubuntu 22)

Update, this only happens with the OpenAI block. Using the AI Agent block does not have anby issue

1 Like

Hi @Andrea_Santaniello

Thanks for posting here and welcome to the community! :tada:

This sounds like a bug! Thanks so much for reporting.
Will post here when it got fixed :pray:

1 Like

If you need more details for debugghing let me know. The issue is no happening when using the AI Agent block, same HTTP requests and logic.

Same here, n8n seems not able to infer schema and tools call does not include parameters? Where can we control the tools call / function interface between AI Agent and a workflow tool?

New version [email protected] got released which includes the GitHub PR 11201.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.