ESPbootloader icon indicating copy to clipboard operation
ESPbootloader copied to clipboard

run_config.lua:54: attempt to index global 'buf' (a nil value)

Open rwkiii opened this issue 9 years ago • 2 comments

I have a PANIC error I when running ESPBootloader. What is the proper way of fixing this?

Serial output displays over and over as init.lua is restarted.:

NodeMCU custom build by frightanic.com branch: master commit: c8037568571edb5c568c2f8231e4f8ce0683b883 SSL: false modules: file,gpio,net,node,spi,tmr,u8g,uart,wifi build built on: 2016-02-03 06:17 powered by Lua 5.1.4 on SDK 1.4.0

5 4 3 2 IP unavailable, waiting. 1 Enter configuration mode Get available APs Preparing HTML Form PANIC: unprotected error in call to Lua API (run_config.lua:54: attempt to index global 'buf' (a nil value)) c_ÇRSöfJSúfJÃjîóïø

rwkiii avatar Feb 03 '16 19:02 rwkiii

I have same issue. Module ESP12F.

medamarko avatar Feb 05 '16 15:02 medamarko

Seems like the html file was in wrong location. Changingif (file.open('html/configform.html','r')) then to your html file location, solved this error.

medamarko avatar Feb 05 '16 15:02 medamarko