Making a get request fails if it is threaded #10243
Replies: 3 comments 5 replies
-
@enze-l Sorry about the delay responding. This sounds like a bug. Which board/port are you using? Pico (W?), ESP32, STM32/pyboard, or something else? |
Beta Was this translation helpful? Give feedback.
-
I also have this problem on my RPI Pico W, running Miropython 1.20 |
Beta Was this translation helpful? Give feedback.
-
i have been trying to work around this and wrote 2 theoretical workarounds the idea is to use core 1 for the bulk of your work and offload stuff to core 0 while doing this i found a way to break wifi, maybe you a will have better luck using a w5500 NIC i am able to use urequest on core 1 and it works, however it has been a stability nightmare with seemingly random hardlocks, if you do not need interrupts at all maybe it is stable, i think as soon as you use a single one ever in the script it can crash at any time after |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to make an get request to an api. It works as expected. But as soon as I make the request in a thread it fails.
Here is the code without threading:
The code above works as expected. But now the threaded version:
This one throw the Exception:
OSError: (-17040, 'MBEDTLS_ERR_RSA_PUBLIC_FAILED+MBEDTLS_ERR_MPI_ALLOC_FAILED')
Am I doing something wrong or am I not aware of some behaviour? I would be greatfull for any help!
Beta Was this translation helpful? Give feedback.
All reactions