You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Issues are not for customer support, configuration or discussion. For those topics please consult with your HW vendor or the OSMU Discord at: https://osmu.bitaxe.org
Describe the bug
When updating settings through the API at PATCH /api/system, if any values are explicitly null, it seems to crash the entire device.
To Reproduce
Steps to reproduce the behavior:
Have a Bitaxe.
Dance because you own a Bitaxe, and that's awesome.
Get device IP
Run the command curl -v -X PATCH -d '{"wifiPass":null}' http://<DEVICE_IP>/api/system
Notice that the device restarts itself (fans spin down, Uptime in web app resets)
Cry
Expected behavior
I would expect it to be ignored or an error be thrown to let me know I screwed up the request body.
Screenshots & Photos
If applicable, add AxeOS screenshots and/or photos of your Bitaxe to help explain your problem.
Hardware (please complete the following information):
Bitaxe HW version: Gamma 601
Bitaxe HW vendor: Solo Satoshi
ESP-Miner FW version: v2.4.0
Hash Frequency: 525
Voltage: 1150
Pool URL, Port, User: Braiins.....
Additional context
I checked all the settings and it appeared these ones being set to null are when the issues turn up. The others seem to just treat it as false.
Note: Issues are not for customer support, configuration or discussion. For those topics please consult with your HW vendor or the OSMU Discord at: https://osmu.bitaxe.org
Describe the bug
When updating settings through the API at
PATCH /api/system
, if any values are explicitlynull
, it seems to crash the entire device.To Reproduce
Steps to reproduce the behavior:
curl -v -X PATCH -d '{"wifiPass":null}' http://<DEVICE_IP>/api/system
Expected behavior
I would expect it to be ignored or an error be thrown to let me know I screwed up the request body.
Screenshots & Photos
If applicable, add AxeOS screenshots and/or photos of your Bitaxe to help explain your problem.
Hardware (please complete the following information):
Additional context
I checked all the settings and it appeared these ones being set to
null
are when the issues turn up. The others seem to just treat it asfalse
.The text was updated successfully, but these errors were encountered: