Asynchttpget query not working

i can return data from the device without any issues using curl
curl -v http://10.1.1.10/web/api/get_info?wpl=

when i query the device from Hubitat using asynchttpGet, there is no response...the handler is not triggered by a response of any kind.
i've tried many forms of structuring the 'get', for example including appending the "?wpl=" to the path.
debug output shows the params passed to asynchttpGet to look OK (both content and format).

i'm hoping a separate pair of eyes will help: any ideas?

code chunks

...
asyncGetParams = getParams()
asynchttpGet("getHandler", asyncGetParams)
...
def getParams() {
    Map params = [:]
        params = [
            uri: "http://" + settings.ipAddress + ":" + settings.ipPort,
            path: "/web/api/get_info",
            requestContentType: 'text/plain',
            contentType: 'text/plain',
            query: ["wpl": ""],
            headers: [ "User-Agent": "Hubitat", "Accept": "*/*" ],
            timeout: 5
        ]
    }
1 Like

hi y'all. found it. one of those times where 6 hours of trial/error, research and head-scratching turned out to be one of those "first turn it on" issues.
sigh.

1 Like

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