fadushin / esp8266

This repository contains source code for the ESP8266.
BSD 2-Clause "Simplified" License
73 stars 22 forks source link

use api_handler post error #12

Open xhsiung opened 7 years ago

xhsiung commented 7 years ago

port data is { "name":"alex", "test": "aaaa" }

error: below

uhttpd/master
Bad Request Failed to load JSON: syntax error in JSON:
Traceback (most recent call last):
  File "uhttpd.py", line 157, in handle_request
  File "http_api_handler.py", line 50, in handle_request
  File "http_api_handler.py", line 50, in handle_request
BadRequestException: Failed to load JSON: syntax error in JSON
fadushin commented 6 years ago

The unit tests post data and currently pass. Could you provide more information about how to reproduce this?