Replies: 1 comment 3 replies
-
I have noticed that the error numbers are not very well standardized in different microcontrollers. See the discussion in #118 for a similar problem to yours. Near the bottom of that thread you can see how one user added 113 to the muted error list and that seemed to help. Other users indicate that this error occurred when the network dropped, which isn't really something Microdot can recover from. |
Beta Was this translation helpful? Give feedback.
3 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I am connecting to Microdot running on a ESP32-S3 microcontroller running on a wireless LAN. When the connection to the WLAN router drops out, I get an OSError 113 on the server which is not handled by Microdot. My application catches this in a global exception handler for Asyncio but since I don't know if the Microdot server can recover, I simply crash out of the application. Here is a typical traceback:
Err 113 is not one of the "MUTED_SOCKET_ERRORS" in Microdot that are explicitly handled. Is this by design? Is it safe to ignore this error and attempt to reconnect the WLAN in the background while leaving the Microdot server app running, or will this cause major memory leaks, etc.?
I am running Microdot on Micropython 1.24.0.
Beta Was this translation helpful? Give feedback.
All reactions