httpPut UndeclaredThrowableException?


#1

I have a custom SmartApp running and the code hasn’t changed for a while. Suddenly today I’m getting java.lang.reflect.UndeclaredThrowableException on the httpPut call which consequently isn’t succeeding. Is anyone else noticing this or was this code always wrong and now suddenly the platform is less tolerant?

def putParams = [
    uri: url,
    body: []
]

httpPut( putParams ) { response -> 
    if( response.status != 200 )
    {
        log.error "SmartStreams sending failed, status = ${response.status}"
    }

#2

Nevermind…:neutral_face:

I found that the URI was getting mangled on one of my hubs but not the other. Turns out this is the error that is thrown for a malformed URI so maybe this will help someone in the future with this error.