Skip to content
Problem with the HT...
 
Notifications
Clear all

Problem with the HTTP Request Tool

7 Posts
5 Users
0 Reactions
6 Views
Andrea_Santaniello
(@andrea_santaniello)
Posts: 3
Active Member
Topic starter
 

I'm attempting to retrieve JSON data from our backend, which contains a list of doctors from our platform. The node is failing with the error "Received tool input did not match expected schema" without any further details. It's a straightforward unauthenticated GET request (I've copied an example output to pastebin if you'd like to test it).

Any insights?

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, callin.io cloud, desktop app): docker
  • Operating system: linux (ubuntu 22)
 
Posted : 04/10/2024 4:09 pm
Andrea_Santaniello
(@andrea_santaniello)
Posts: 3
Active Member
Topic starter
 

Update: This issue is specific to the OpenAI block. The AI Agent block does not exhibit this problem.

 
Posted : 04/10/2024 4:19 pm
ria
 ria
(@ria)
Posts: 48
Eminent Member
 

Hi there!

Thanks for posting and welcome to the community!

:tada:

This sounds like a bug! Thanks so much for reporting.
Will post here when it's fixed.

:pray:

 
Posted : 07/10/2024 11:11 am
Andrea_Santaniello
(@andrea_santaniello)
Posts: 3
Active Member
Topic starter
 

If you require further details for debugging, please inform me. The problem does not occur when utilizing the AI Agent block, with identical HTTP requests and logic.

 
Posted : 07/10/2024 2:10 pm
Morriz
(@morriz)
Posts: 2
New Member
 

Same here, callin.io 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?

 
Posted : 09/10/2024 2:48 pm
jan
 jan
(@jan)
Posts: 39
Eminent Member
 

A new version, callin.io@1.64.0, has been released, incorporating GitHub PR 11201.

 
Posted : 16/10/2024 11:43 am
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 7 days following the last response. New replies are no longer permitted.

 
Posted : 23/10/2024 11:44 am
Share: