-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Failed to update from github #10
Comments
Interesting. The current library expects a 2XX http response code, and this example – thanks for sharing the serial spew, btw – indicates a 302 “redirection”. I can confirm that your links are reachable; I wonder if github is doing something special here. Will research, but I don’t think you’re doing anything wrong.
Mikal
From: sagartec ***@***.***>
Sent: 01 May 2024 08:26
To: mikalhart/ESP32-OTA-Pull ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [mikalhart/ESP32-OTA-Pull] Failed to update from github (Issue #10)
I have tried Basic-OTA-Example.ino example and updated the basic config like SSID and Password. then i updated the config json like follows,
{ "Configurations": [ { "Board": "ESP32_DEV", "Version": "1.0.0", "Device": "24:0A:C4:B0:0C:64", "URL": "https://github.com/sagartec/test/releases/download/test01/Blink.ino.bin" } ] }
The binary is available publically but still code is not working for me, following are the serial prints. Am i missing anything?
Any help would really appreciated!!!
`Connecting to WiFi 'hidden'.................
We are running version 0.0.9 of the sketch, Board='ESP32_DEV', Device='24:0A:C4:B0:0C:64'.
Checking https://github.com/sagartec/test/releases/download/test01/Basic-OTA-Example.json to see if an update is available...
CheckForOTAUpdate returned 302 (Unexpected HTTP response code)
But if we pretend like we're running version 0.0.0, we SHOULD see an update happen.
(If the update succeeds, the reboot should prevent us ever getting here.)
CheckOTAForUpdate returned 302 (Unexpected HTTP response code)
`
—
Reply to this email directly, view it on GitHub <#10> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAD3BWDXR376DM7GPHWZHULZACKHDAVCNFSM6AAAAABHBS4KKCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TGMBWG4ZTEMA> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/AAD3BWCX5BQYO6GWMKR3M3TZACKHDA5CNFSM6AAAAABHBS4KKCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIO7CBHA.gif> Message ID: ***@***.*** ***@***.***> >
|
I have also experienced failures to update that I've been unable to explain. Using similar loads in two different online directories, for example, updates always succeeded with one and always failed with the other, the only difference being the subdirectory name. Perhaps my problem stems from the same source. |
The link redirects to : which redirects to: which returns a 200 with correct content-length: Using releases might not be a good idea with github. |
This is a limitation of the underling esp32-arduino HTTPClient library. I don't think there's a solution to this one unless they've amended the library to support HTTP 302 redirection responses. In the mean time you could potentially manage this in your own code, based on a Google Gemini suggestion:
|
I have tried Basic-OTA-Example.ino example and updated the basic config like SSID and Password. then i updated the config json like follows,
The binary is available publically but still code is not working for me, following are the serial prints. Am i missing anything?
I am using DOIT ESP32DEVKIT board.
Any help would really appreciated!!!
The text was updated successfully, but these errors were encountered: