Search found 3 matches

by davlefou
Sun Feb 03, 2019 4:06 pm
Forum: ESP8266 boards
Topic: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given
Replies: 17
Views: 1459

Re: Problem with uasyncio running picoweb - TypeError: function takes 2 positional arguments but 3 were given

Hi, to solved for ulogging you can do that in __init__.py of picoweb: def run(self, host="127.0.0.1", port=8081, debug=-1, lazy_init=False, log=None) et for uasyncia in __init__.py in "def remove_writer(self, sock):" udpate that self.poller.unregister(sock, False) bay: try: self.poller.unregister(so...
by davlefou
Mon Jan 28, 2019 3:19 pm
Forum: ESP8266 boards
Topic: picoweb URL Params in routes
Replies: 2
Views: 643

Re: picoweb URL Params in routes

Hi, you have made an mistake, it start with 0:
[code]
dict = {x[0] : x[1] for x in [x.split("=") for x in req.qs[1:].split("&") ]}
[/code]