Page 1 of 1

OSError: -28928

Posted: Wed Mar 09, 2022 2:17 am
by KJM
I tried googling OSError: -28928 but no hits. I get this error from urequests occasionally so I suspect it's got something to do with sockets or DNS lookups? Can anybody enlighten me?

Re: OSError: -28928

Posted: Sun Apr 10, 2022 11:07 pm
by BetterAutomations
I'm pretty sure OSErrors when running TLS are mbedTLS errors. And I'm also pretty sure that these are written and decimal and need to be translated to hex to find the actual mbedTLS error. So -28928 in decimal equates to mbedtls error -0x7100. And looking at the mbedTLS errors, we see -0x7100 is MBEDTLS_ERR_SSL_BAD_INPUT_DATA: Bad input parameters to function.

I'm not 100% sure about this, but I think that's correct. And that's about as far as I can take you with this one. It's frustrating, isn't it.

https://tls.mbed.org/api/ssl_8h.html

Re: OSError: -28928

Posted: Sat Apr 23, 2022 1:07 am
by KJM
Opaque error codes are very frustrating. Thnx for the heads up on looking for the hex equivalent, I should have tweaked to that option.