-->
Page 1 of 1

OTA update fails with code 536

PostPosted: Sun Jan 05, 2020 10:32 am
by teddyz
I have an ESP8266 in my coffee machine. It has been working nicely for two years and today I wanted to update it using OTA. And it worked, first time. But I made a mistake in the code and now I need to upload again and is stuck. The error I see is "536".

Code: Select allD:\Mina Dokument\Arduino\MQTT\mqtt_kaffe_v002>cd "D:\Mina Dokument\Arduino\MQTT\mqtt_kaffe_v002\"

D:\Mina Dokument\Arduino\MQTT\mqtt_kaffe_v002>python.exe "D:\Mina Dokument\Arduino\hardware\espressif\esp32\tools\espota.py" -i 192.168.1.156 -f "mqtt_kaffe_v00
2.ino.d1_mini.bin" --auth=CEf76lllSEFQqqfc
15:57:02 [DEBUG]: Options: {'esp_ip': '192.168.1.156', 'host_port': 51463, 'image': 'mqtt_kaffe_v002.ino.d1_mini.bin', 'host_ip': '0.0.0.0', 'auth': 'CEf76lllSE
FQqqfc', 'esp_port': 8266, 'spiffs': False, 'debug': False, 'progress': False}
15:57:02 [INFO]: Starting on 0.0.0.0:51463
15:57:02 [INFO]: Upload size: 477696
Sending invitation to 192.168.1.156
Authenticating...OK
15:57:03 [INFO]: Waiting for device...
Uploading.......................................................................................................................................................
................................................................................................................................................................
............................................................................................................................................................
15:57:16 [INFO]: Waiting for result...
15:57:16 [INFO]: Result: 536

15:57:16 [ERROR]: 536

D:\Mina Dokument\Arduino\MQTT\mqtt_kaffe_v002>pause
Press any key to continue . . .


How can I find what 536 means?

Re: OTA update fails with code 536

PostPosted: Thu Jan 09, 2020 12:18 pm
by teddyz
This also happened to a second device for me.
Sometimes it said 2144 ( =4*536), but most commonly 536.

But at last, after some 50 tests, it worked.

Re: OTA update fails with code 536

PostPosted: Thu Jan 09, 2020 4:43 pm
by btidey
536 is not a standard defined html error code but some servers use it to indicate a PIPE failure

https://docs.microsoft.com/en-us/window ... --500-999-

Re: OTA update fails with code 536

PostPosted: Sun Jan 12, 2020 5:18 am
by teddyz
I found the "real" error. I had two espota.py on my computer. The one I used was for ESP32. Funny it worked sometimes. Thanks for helping!