rspier / go-ecobee

A go library for the Ecobee Thermostat API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not handling HTTP errors correctly

jkowalski opened this issue · comments

Per godoc, https://godoc.org/net/http#Client.Get

"A non-2xx response doesn't cause an error.".

Currently auth.go and functions.go do not check server response (which may be and recently sometimes is 500).