用 Java 程序下载时 SSLHandshakeException: Remote host terminated the handshake

如图
00e2852f-3a1b-49ba-9237-522757a354e0-image.png
有些文件会刷,有些文件不会。简单搜了一下,往代码里加入了 System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2"); 也不管用。

从官方源下载时没有这样的问题。有开代理,但是关了以后也是这样。

下载相关代码:
0c581178-6880-40b6-bcff-6664087d0cb3-image.png

可能是局部地区的网络问题,多观察几天看看?
最好能给出文件URL,最好是重定向后的URL

嗯。。今天又试了一下,还是官方源没问题,BMCLAPI有这样的问题

Failed to download minecraft/lang/ast_es.json from https://bmclapi2.bangbang93.com/assets/1d/1dc736ebf34149fa6318f1c3346b165a319b3fa8 (SSLHandshakeException: Remote host terminated the handshake)

@Subilan用 Java 程序下载时 SSLHandshakeException: Remote host terminated the handshake 中说:

嗯。。今天又试了一下,还是官方源没问题,BMCLAPI有这样的问题

Failed to download minecraft/lang/ast_es.json from https://bmclapi2.bangbang93.com/assets/1d/1dc736ebf34149fa6318f1c3346b165a319b3fa8 (SSLHandshakeException: Remote host terminated the handshake)

试试用http,别用https