OSError: -28928

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

OSError: -28928

Post by KJM » Wed Mar 09, 2022 2:17 am

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?

BetterAutomations
Posts: 83
Joined: Mon Mar 20, 2017 10:22 pm

Re: OSError: -28928

Post by BetterAutomations » Sun Apr 10, 2022 11:07 pm

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

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: OSError: -28928

Post by KJM » Sat Apr 23, 2022 1:07 am

Opaque error codes are very frustrating. Thnx for the heads up on looking for the hex equivalent, I should have tweaked to that option.

Post Reply