We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: DioError [DioErrorType.DEFAULT]: HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: certificate is not yet valid(handshake.cc:352)) null
The text was updated successfully, but these errors were encountered:
1、更新pubspec.yaml dio为 dio: ^2.1.0 2、修改DioManager类为
class DioManager { Dio _dio;
DioManager._internal() { _dio = new Dio(); (_dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = (client) { client.badCertificateCallback = (X509Certificate cert, String host, int port) { return true; }; }; }
static DioManager singleton = DioManager._internal();
factory DioManager() => singleton;
get dio { return _dio; } }
Sorry, something went wrong.
No branches or pull requests
E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: DioError [DioErrorType.DEFAULT]: HandshakeException: Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: certificate is not yet valid(handshake.cc:352))
null
The text was updated successfully, but these errors were encountered: