skeleton-htmengine-app
skeleton-htmengine-app copied to clipboard
Extra comma character in the example post request.
The shell command given in the example from the readme is as follows:
while true; do while true; do echo "`(uptime | awk -F'[a-z]:' '{ print $2}' | awk '{print $1}')` `date +%s`" | curl http://localhost:8080/load_average -X POST -d @-; sleep 5; done; done
Somehow a comma character is added to the value that is read by webapp.py.
so this piece of code results in the following error:
ValueError: invalid literal for float():
I fixed it in my project by stripping the last character off the 'value' string:
value= value[:-1]
after line 87.