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

failed to fetch map URL certificate error #186

Closed
DanialV opened this issue Dec 18, 2018 · 1 comment
Closed

failed to fetch map URL certificate error #186

DanialV opened this issue Dec 18, 2018 · 1 comment

Comments

@DanialV
Copy link

DanialV commented Dec 18, 2018

My Map doesn't load due to certificate verification is there any way to disable it? I found some solution however I don't know how to apply them
here is the solution which I found but I don't know how to use that.

_client = new HttpClient();
_client.badCertificateCallback = (X509Certificate cert, String host, int port) => true;

Error log:
I/flutter (23416): The following FetchFailure was thrown NetworkImageWithRetry failed to load
I/flutter (23416): https://my map url:
I/flutter (23416): FetchFailure(
I/flutter (23416): attemptCount: 1
I/flutter (23416): httpStatusCode: null
I/flutter (23416): totalDuration: 0:00:02.896710
I/flutter (23416): originalException: HandshakeException: Handshake error in client (OS Error:
I/flutter (23416): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:363))
I/flutter (23416): )

@DanialV DanialV closed this as completed Dec 18, 2018
@DanialV
Copy link
Author

DanialV commented Dec 18, 2018

I solve the issue with this issue Override HttpClient globally

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

1 participant