You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
The esp_https_ota component tries to download the binary when it receives a 304 HTTP status code. I think it should stop the OTA progress, because this status code should indicate that the firmware is already up to date.
The HTTP 304 Not Modified redirection response status code indicates that there is no need to retransmit the requested resources.
Maybe the same should be done for status code 204, which according to MDN means:
The HTTP 204 No Content successful reponse status code indicates that a request has succeeded, but the client doesn't need to navigate away from its current page.
Returning 404 will stop the OTA in the current esp-idf, but I don't think that is the correct status code to use, as the URL is valid. I would only expect a 404 if the URL doesn't point to a valid location.
Is this something that can be implemented in ESP-IDF?
The text was updated successfully, but these errors were encountered:
We’ve raised a merge request to handle the 304 (NOT_MODIFIED) response code, and it will be merged soon.
Typically, a 204 (NO_CONTENT) response is returned by the server in DELETE or POST requests, so we haven’t included handling for it in the OTA process. However, if you have a specific reproducible case where a 204 response is encountered during OTA, please let us know. We’ll be happy to add support for it if needed.
Answers checklist.
General issue report
The
esp_https_ota
component tries to download the binary when it receives a304
HTTP status code. I think it should stop the OTA progress, because this status code should indicate that the firmware is already up to date.According to MDN:
Maybe the same should be done for status code 204, which according to MDN means:
Returning 404 will stop the OTA in the current esp-idf, but I don't think that is the correct status code to use, as the URL is valid. I would only expect a 404 if the URL doesn't point to a valid location.
Is this something that can be implemented in ESP-IDF?
The text was updated successfully, but these errors were encountered: