Open sagartec opened 1 month ago
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 https://github.com/mikalhart/ESP32-OTA-Pull/issues/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.
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!!!