[WARN] Silent HTTP failures in pollTopic() #4

Open
opened 2026-05-29 22:22:44 +00:00 by david · 0 comments
Owner

Problem

DoorbellLogic::pollTopic() silently ignores HTTP failures, returning without logging errors when code != 200 || body.length() == 0.

This makes debugging network issues difficult.

Affected file: libraries/KlubhausCore/src/DoorbellLogic.cpp line ~179

Fix

Add Serial.printf("[ERROR] poll %s failed %d\n", topic, code); for debuggability when HTTP requests fail.

## Problem `DoorbellLogic::pollTopic()` silently ignores HTTP failures, returning without logging errors when `code != 200 || body.length() == 0`. This makes debugging network issues difficult. **Affected file:** `libraries/KlubhausCore/src/DoorbellLogic.cpp` line ~179 ## Fix Add `Serial.printf("[ERROR] poll %s failed %d\n", topic, code);` for debuggability when HTTP requests fail.
david added the warning label 2026-05-29 22:22:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: klubhaus/klubhaus-doorbell#4