C#C
C#6mo ago
Cherry

✅ Failed to download file from GitHub Release by GitHub API

I want to download JavaWrapper latest file from GitHub Release by GitHub API, but failed at sending /repos/{owner}/{repo}/releases/latest. The server replied 403.
And I have tried to use Hoppscotch, it's work. Only C# code failed.
I really don't know how to solve the problem. Thanks for your help!
And this is the log content:
2025-07-05 17:48:56.441 +08:00 [INF] Start to download JavaWrapper file.
2025-07-05 17:48:57.026 +08:00 [ERR] Failed to download JavaWrapper.
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at PCL.Neo.Core.Service.Game.GameService.DownloadJavaWrapperAsync(String targetDir) in G:\PCL.Neo\PCL.Neo.Core\Service\Game\GameService.cs:line 48
game_service_help.png
Was this page helpful?