I’m sure this is lack of programming experience, but any ideas why I’m getting the following error?
09:56:00 GMT: error something went wrong: java.lang.SecurityException: Endpoint http://rakobridge is blacklisted.
And if I change the URI to an IP address:
09:58:25 GMT: error something went wrong: org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.1.125:80 [/192.168.1.125] failed: connect timed out
Code:
def initialize() {
// TODO: subscribe to attributes, devices, locations, etc.
subscribe(contact, “contact.open”, comRako)
}
def comRako(evt) {
def params = [
uri: “http://rakobridge”,
path: “/rako.cgi”,
query: [
“room”: “6”,
“ch”: “4”,
“lev”: “250”,
]
]
try {
httpGet(params) { resp ->
log.debug “response data: ${resp.data}”
}
} catch (e) {
log.error “something went wrong: $e”
}
}