esp8266 icon indicating copy to clipboard operation
esp8266 copied to clipboard

Make a URL debug option in api_handler.py

Open JoeCharlieH opened this issue 5 years ago • 0 comments

I'm currently working on a small configuration program for a glucose sensor. The way I configure all the options and user info is by a web server with your module.

Currently, the basic functions I made work pretty good, but sometimes there's an issue with the JSON module in the api_handler file when I use the POST method. It sometimes raises a Bad Request 400 or just proceeds with an OK 200. It's pretty much random.

I don't know if is a Request problem, URL, RAM alloc or something else.

Maybe, if there was an option in api_handler.py to display the URL in the REPL, it could make easy identifying the issue of this problem.

Information:

  • Board: ESP8266 (32 kB RAM, 4 MB Flash)
  • Micropython: v1.11 (with uhttpd, uasyncio as frozen modules)
  • Chrome: 75.0.3770.100
  • IDE: VSCode 1.36 with Pymakr 1.1.2 Module

JoeCharlieH avatar Jul 08 '19 20:07 JoeCharlieH