Open Poly-Mentor opened 11 months ago
@ParryHotter95
I have the exact same issue on a ESP32 chip and I think that there is a bug there on line 830.
Maybe this RFC have something in common: https://github.com/micropython/micropython/issues/8915
Changing ssl.SSLSocket to ssl.SSLContext on line 830 fixes the issue.
@ParryHotter95
You can see a PR here: https://github.com/jczic/MicroWebSrv2/pull/98
Hey, firstly - thank you for the great job writing this library, it's very easy to use. I used it in some of my projects before. However I have encountered a problem in my recent project, trying to run this server on ESP32, or to be more precise - Wemos S2 mini. In my main.py i run standard setup:
It is initialized correctly, but when I try to access device's IP via browser an exception is raised:
it points to those lines of code from XAsyncSockets.py
when I add debugging print statement to this method
that's the result:
Unfortunately I don't have a knowledge to figure out if ssl module is valid and why there's 'SSLSocket' attribute missing. Can you help me?
EDIT: I also tried deleting second condition from "and" expression to see what happens next
But i got an error futher in this part of the same file: