Arduino Core OTA Now Accepts 204 Responses
We recently had a PR approved and merged into the Arduino Core for ESP32 library.
If a deployment is not active or has not been created for a product, Deploy the Fleet will return a 204 HTTP status code. This is the most accurate code as it indicates that no content is available.
Until recently, the Arduino Core for ESP32 library would interpret this as an error condition and give an error message that the OTA update failed. While it’s true that no update occurred, it was not accurate to call it an error.
We submitted a PR to the project and it has now been approved and merged. The OTA library in Arduino Core for ESP32 will not gracefully handle the 204 response code and no longer treat it as an error. 🙌