You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "main.py", line 30, in run
File "tinyweb/server.py", line 689, in shutdown
File "uasyncio/__init__.py", line 1, in __getattr__
AttributeError: cancel
The text was updated successfully, but these errors were encountered:
Correct, according to the latest documentation uasyncio has no cancel() function at the module level. I think what is intended is to call the cancel() method of the Task class; however, I don't see that the code is saving references to the task instances returned calls to the loop .create_task() method.
tinyweb/tinyweb/server.py
Line 689 in 33d73c9
Board: esp8266, generic nodeMCU dev board
Micropython: 1.17 (esp8266 port), with frozen modules tinyweb and logging
I'm trying to perform the "shutdown" procedure as per instructions in the reference material for the webserver class, i.e.
When I run my server then hit Ctrl-C, I get:
The text was updated successfully, but these errors were encountered: