skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
363 stars 132 forks source link

API call for system restart not working #481

Open jrkalf opened 2 hours ago

jrkalf commented 2 hours ago

Tested against version 2.3.0

The console call to restart AxeOS is working, but doing an API call with curl: # curl -X POST http://bitaxe_ip/api/system/restart it fails with a empty reply from server and after that a connection reset by Peer on a second attempt. Net-result is an AxeOS that keeps running, not rebooting.

eandersson commented 2 hours ago

I just tried on my 2.3.0 and it worked properly.

curl -X POST http://192.168.3.103/api/system/restart System will restart shortly.

Can you add -v to your curl command to generate a bit more output?