Skip to content
AI agent HTTP reque...
 
Notifications
Clear all

AI agent HTTP request fails when passing a parameter

3 Posts
3 Users
0 Reactions
6 Views
Roman_G
(@roman_g)
Posts: 1
New Member
Topic starter
 

Hi,

I'm attempting to call an API using an AI agent and an HTTP request. I'm providing an object ID as an input parameter and consistently receiving an "Invalid URL" error.

    {
      "parameters": {
        "toolDescription": "get metadata for business object by id",
        "url": "  https://testdl-schema/v1/schema-creation-currated/{boId }",
        "sendHeaders": true,
        "parametersHeaders": {
          "values": [
            {
              "name": "cookie",
              "valueProvider": "fieldValue",
              "value": ""
            }
          ]
        },
        "placeholderDefinitions": {
          "values": [
            {
              "name": "boId",
              "description": "=the id of the first business object / bussiness_object from the list {{ $json.output.business_object[0].id }}"
            }
          ]
        },
        "optimizeResponse": true
      },
      "type": "@callin.io/callin.io-nodes-langchain.toolHttpRequest",
      "typeVersion": 1.1,
      "position": [
        520,
        100
      ],
      "id": "49a062f4-771e-4181-bc4d-368036583b92",
      "name": "get metadata",
      "notesInFlow": false
    },

I've observed from the debug output that the parameter is being correctly passed to the node:

However, I'm still encountering the error "There was an error: "Invalid URL"".

I'm unable to locate where to view the exact request that callin.io has made.

Information on your callin.io setup

  • callin.io version: 1.84.3
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app):
  • Operating system:

Please provide the rewritten markdown content *it should be in the markdown format.

 
Posted : 03/04/2025 11:52 am
Franz
(@franz)
Posts: 9
Active Member
 

You can review the tools and requests executed by the agent within the chat.
Regarding your URL, it appears to start with a leading whitespace.

 
Posted : 03/04/2025 2:00 pm
system
(@system)
Posts: 332
Reputable Member
 

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

 
Posted : 02/07/2025 2:00 pm
Share: