i am having issues with the HTTPServer
<form action="/update" method="post">
<label for="low">low:</label>
<input type="text" id="low" name="low"><br><br>
<label for="high">high:</label>
<input type="text" id="high" name="high"><br><br>
<label for="full">full:</label>
<input type="text" id="full" name="full"><br><br>
<label for="empty">empty:</label>
<input type="text" id="empty" name="empty"><br><br>
<label for="timeout">timeout:</label>
<input type="text" id="timeout" name="timeout"><br><br>
<input type="submit" value="Submit">
</form>
and
@server_service.route("/update", [POST], append_slash=True)
def update(request: Request):
new_data = request.json()
print(new_data)
and is always fails with invalid JSON
on
request.json()