[WARN] Silent HTTP failures in pollTopic() #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
DoorbellLogic::pollTopic()silently ignores HTTP failures, returning without logging errors whencode != 200 || body.length() == 0.This makes debugging network issues difficult.
Affected file:
libraries/KlubhausCore/src/DoorbellLogic.cppline ~179Fix
Add
Serial.printf("[ERROR] poll %s failed %d\n", topic, code);for debuggability when HTTP requests fail.