Ad Widget

Collapse

HTTP Agent Item for Host using IPv6 address fails with

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ewysong
    Junior Member
    • May 2024
    • 1

    #1

    HTTP Agent Item for Host using IPv6 address fails with

    I'm trying to add an item to a template using the "HTTP agent" type, with the URL as follows:

    https://{HOST.CONN}/api/blah/blah

    This works fine if the host uses an IPv4 address for its host interface. However, if it an IPv6 address, the item fails with the error message "Cannot perform request: URL using bad/illegal format or missing URL"

    After some troubleshooting, this is because the necessary []'s around the IPv6 address are not present. If I adjust the URL to include them:

    https://[{HOST.CONN}]/api/blah/blah

    it works just fine. Of course then it fails for any hosts using an IPv4 address.

    Ideally the template should work for hosts using either an IPv4 or IPv6 addresses for their interface address. Any suggestions for a workaround/fix?
Working...