我无法在flutter中使用Api发送和接收数据

问题描述 投票:0回答:1

`我正在尝试使用 Nodejs API 发送和接收数据,但我陷入了这个错误,我已经尝试了很多方法,但无法解决这个问题。请提供有价值且最佳的解决方案。

[错误:flutter/runtime/dart_vm_initializer.cc(41)] 未处理的异常:HandshakeException:客户端中出现握手错误(操作系统错误: WRONG_VERSION_NUMBER(../../third_party/boringssl/src/ssl/tls_record.cc:231)) #0 _SecureFilterImpl._handshake (dart:io-patch/secure_socket_patch.dart:99:46) #1 _SecureFilterImpl.handshake (dart:io-patch/secure_socket_patch.dart:143:25) #2 _RawSecureSocket._secureHandshake (dart:io/secure_socket.dart:920:54) #3 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1049:19) ]`

flutter api sslhandshakeexception
1个回答
0
投票

我相信您正在使用

https://
但尚未安装 SSL 证书。所以尝试使用
http://
而不是
https://

© www.soinside.com 2019 - 2024. All rights reserved.