Closed knuckleheadsmiff closed 4 years ago
Should log the 'response' here under the debug_sensitive flag:
var queryUri = deviceURL + '/' + deviceID;
request(queryUri, function (err, response, body) {
this.debug("GetStatus responded: ");
if (!err) {
if (this.debug_sensitive) this.debug("body: "+ body);
try {
Oddly the error has gone away with no changes. I'm assuming it was an issue on the server end. I'd like to add better logging for this case behaves and put out a better error but for now I'll just close the bug. Im trying to maintain this as little as possible,
I am seeing more transient errors in the logs I've noticed but Im not sure if it is something flaky with the ryobi website. I'm getting responses with invalid JSON but then it works after retrying a few times.
I should fix the logging to show the HTTP return code and debug this more. This seems to only be an issue with Andy's change to use cookies to maintain auth.
I do minimal work on this so if someone else wants to take a look than great!
here is what I am seeing in the logs a lot: