Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/device/otaFlash not found #102

Open
yuripace opened this issue Nov 21, 2020 · 7 comments
Open

/api/device/otaFlash not found #102

yuripace opened this issue Nov 21, 2020 · 7 comments

Comments

@yuripace
Copy link

I have a sonoff mini (bought in 2019) in DIY mode running 3.6 firmware. I put successful in DIY mode with post request, when i try to reflash firmware i get this error "POST /api/device/otaFlash HTTP/1.1" 404 301 "-" "-"
Also this tool cannot see the sonoff mini.
Anyone able to reflash without soldering?

@yuripace
Copy link
Author

Tried different web server(docker image, apache,nginx) but result Is the same. I'm using the hotspot smartphone network.
Any suggestion?

@dejanskledar
Copy link

I am experiencing the same issue... Sonoff Mini2, 3.6 firmware.. nginx in docker...

@jf2020
Copy link

jf2020 commented Dec 12, 2020

I had exactly the same issue. Like me you must have been trying to flash tasmota.bin. The solution is to flash tasmota-lite.bin instead. I think that there is a check in firmware 3.6.0 that file size of firmware is < 500kb.
Once I switched to tasmota-lite, the process worked basically instantly...

@yfaykya
Copy link

yfaykya commented Dec 19, 2020

I get same with lite file. Using nginx to host.

@namadori
Copy link

namadori commented Jan 6, 2021

I was having the same problem, turned out that in the HTTP post I was using a SHA256 with uppercase letters. Once I used the same hash with lowercase letters it flashed correctly. Sonoff Mini R2 with FW 3.6.0.

@dejanskledar
Copy link

Got it working by using a different Tasmota version. Everything same as before, but it seems that Tasmota 8.4.0 (Lite) flashed without any issues (I was using 9.2.0 before).

The "/api/device/otaFlash not found" error is meaningless though. Flashed it successfully even with that error. I tried to create a new NGIX server with "api/device/otaFlash" POST endpoint, and no error occurring while flasiht, it still failed to flash with Tasmota 9.2.0.

@oliverkurth
Copy link

Same thing here, @jf2020 had the right solution - use tasmota-lite.bin. When it works, the sonoff will do tons of request like GET /tasmota-lite.bin?deviceid=1001xxxx&ts=1576460931&sign=993fc9af2842089b280dd6ac4c585a94e5d95fb18a9948301aaa0b647c8e3c19, then the request for POST /api/device/otaFlash which will fail, but it doesn't matter. The device will reboot into Tasmota.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants