Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UndeclaredThrowableException/MalformedChunkCodingException #1

Open
hogpowerenergy opened this issue Mar 21, 2017 · 1 comment
Open

Comments

@hogpowerenergy
Copy link

I am getting some errors running this code:

private updateChannelInfo() {
log.debug "Retrieving channel info for ${channelId}"

def url = "http://api.thingspeak.com/channels/${channelId}/feed.json?key=${channelKey}&results=0"
httpGet(url) {
    response ->
    if (response.status != 200 ) {
        log.debug "ThingSpeak data retrieval failed, status = ${response.status}"
    } else {
        state.channelInfo = response.data?.channel
    }
}

state.fieldMap = getFieldMap(state.channelInfo)

}

When it gets to httpGet(url) I get the following errors:

java.lang.reflect.UndeclaredThrowableException @ line 82
9682238b-0a4c-4135-846a-cbd8cb02c369 11:09:02 AM: error org.apache.http.MalformedChunkCodingException: CRLF expected at end of chunk @ line 82
9682238b-0a4c-4135-846a-cbd8cb02c369 11:09:02 AM: debug Retrieving channel info for xxxxxx

Any suggestions?

@dennisworld2
Copy link
Contributor

See changes in my PR #2 ... they should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants