netbox_react_agent icon indicating copy to clipboard operation
netbox_react_agent copied to clipboard

Netbox API calls fail

Open jasonyates opened this issue 10 months ago • 2 comments

Every netbox API call fails using ChatGPT because %22%0A/ is appended to every URL

netbox_react_agent | Action: get_netbox_data_tool netbox_react_agent | Action Input: "/api/dcim/sites/" netbox_react_agent | {'error': 'Failed to fetch data from NetBox: 404 Client Error: Not Found for url: https://netbox/api/dcim/sites/%22%0A/'}It seems there is a consistent issue with the URL used to fetch data from NetBox. The error message indicates a "404 Client Error," which means the requested resource could not be found at the specified URL. This is likely due to incorrect URL formatting, possibly caused by extraneous characters or encoding issues.

jasonyates avatar Jan 13 '25 22:01 jasonyates

I see this occassionally too usually the tools just keep iterating until it gets the right url; you could try to adjust the prompts to say "please never add %22%0A to the URL" or something? weird behaviour thats not hardcoded anywhere but I get the same issue

automateyournetwork avatar Jan 14 '25 14:01 automateyournetwork

Yeah, sometimes it would land on the right URL but more often than not it would hit a timeout or I'd get rate limited by GPT. I haven't tried the ollama version yet.

jasonyates avatar Jan 14 '25 14:01 jasonyates