neoforged / NeoForge

Neo Modding API for Minecraft, based on Forge
https://projects.neoforged.net/neoforged/neoforge
Other
1.03k stars 129 forks source link

Update checker isn't working #1074

Open Leonmmcoset opened 3 weeks ago

Leonmmcoset commented 3 weeks ago

Minecraft Version: 1.20.4

NeoForge Version: 20.4.223

Logs: latest.log

Steps to Reproduce: 1.Open your Minecraft 2.You can see it in your log.

Description of issue: Update JSON isn't working, have errors:javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

TelepathicGrunt commented 3 weeks ago

Just to be clear and help with reproducing, can you elaborate on your exact setup? Is this a workspace for neoforge or mcreator? Are you using any mod launcher and if so, which? Etc. The whole 9 yards so we have the exact steps you're doing to maximize our chances of reproducing the issue

shartte commented 3 weeks ago

@Leonmmcoset can you also please try to run with the following VM argument: -Djavax.net.debug=ssl:handshake

Leonmmcoset commented 3 weeks ago

I use mcreator to create mod,then I see NeoForge's docs and create a json file on https://github.com/Leonmmcoset/Mod-Update-JSON Then on mcreator : Workspace -> Workspace Settings -> Advanced Settings -> Check Update URL When I write the URL,I run the Minecraft on mcreator,then error coming up. To @TelepathicGrunt

Leonmmcoset commented 3 weeks ago

Maybe I don't using github to storge the JSON files

Leonmmcoset commented 3 weeks ago

I will change another

tmvkrpxl0 commented 2 weeks ago

Can you check the url? It should be https://raw.githubusercontent.com/Leonmmcoset/Mod-Update-JSON/main/messymod.json in your case

sciwhiz12 commented 2 weeks ago

There is the slight possibility that something is intercepting the HTTP request and doing a man-in-the-middle with a certificate that your OS and browser trusts but Java doesn't (since it has its own certificate trust store).

I would suggest checking the certificate served for the site in your browser, just to eliminate that possibility.

Leonmmcoset commented 2 weeks ago

有一种可能性是,某些东西正在拦截 HTTP 请求,并使用您的操作系统和浏览器信任但 Java 不信任的证书进行中间人操作(因为它有自己的证书信任存储)。

我建议在浏览器中检查为该站点提供的证书,以消除这种可能性。

This licence is from GitHub