Closed abdallah-odeh closed 8 months ago
Hi, I've taken the initiative to fork the repository and made updates to the exception handling. Now, all exceptions, including HttpException
and SocketException
, should be correctly thrown and handled even when the user is not connected to the internet. The issue with http_certificate_pinning
throwing CONNECTION_NOT_SECURE
in this case has been addressed.
You can find the updated code on my fork at https://github.com/Exzhnik/http_certificate_pinning.
Please feel free to check it out and let me know if there are any further issues or concerns. Your insights are highly appreciated.
Hi @Exzhnik feel free to open a PR with your changes.
Any chance to approve the PR?
I'm waiting for iOS implementation to merge this PR.
I'm waiting for iOS implementation to merge this PR.
This error happens in Android only. iOS already have a specific exception
Deployed on last version 2.1.2
Unexpected exception was thrown when the user is not connected to the internet, normally, did would throw
HttpException
orSocketException
but in my case, user was not connected, dio threwHttpException
http_certificate_pinning threwCONNECTION_NOT_SECURE