Skip to content

Extra comma character in the example post request. #7

@donders

Description

@donders

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions