Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DioError [DioErrorType.other]: TlsException: Failure trusting builtin roots (OS Error: CERT_ALREADY_IN_HASH_TABLE(x509_lu.c:356), errno = 0) #1151

Closed
1 task done
Nickkorol opened this issue May 7, 2021 · 2 comments

Comments

@Nickkorol
Copy link

Nickkorol commented May 7, 2021

New Issue Checklist

  • I have searched for a similar issue in the project and found none

Issue Info

Info Value
Platform Name flutter
Platform Version 2.0.5
Dio Version 4.0.0
Android Studio / Xcode Version Android Studio 4.0 / Xcode 12.4
Repro rate all the time (100%)

Issue Description and Steps

In my app I am using API, which requires .pem certificates to work properly. They are set when my http client is initialized (method definition on a screenshot below).
Снимок экрана 2021-05-07 в 09 47 58

Dio works fine with this client, but, when I am trying to provide CancelToken to my API Query, I am always getting an error DioError [DioErrorType.other]: TlsException: Failure trusting builtin roots (OS Error: CERT_ALREADY_IN_HASH_TABLE(x509_lu.c:356), errno = 0)

Снимок экрана 2021-05-07 в 09 50 53

This error doesn't appear, when I am sending POST or GET queries to any other URLs, which don't require certificates to work.

What can I do about that? Is there a way to fix this error myself?

@stale
Copy link

stale bot commented Jun 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.

@stale stale bot added the stale label Jun 11, 2021
@stale stale bot closed this as completed Jun 22, 2021
@MrShakila
Copy link

@Nickkorol Did you fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants