From 2bc7d8001de528faa54d8a183969d3cf97c7a953 Mon Sep 17 00:00:00 2001 From: Plenyx <1507236+Plenyx@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:27:43 +0200 Subject: [PATCH] Increased the timeout to prevent error 0 --- Forms/FormMain.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Forms/FormMain.cs b/Forms/FormMain.cs index 42cd5e6..d89e1cb 100644 --- a/Forms/FormMain.cs +++ b/Forms/FormMain.cs @@ -753,9 +753,12 @@ internal async Task SendLogToTwitchChatAsync(DpsReportJson reportJSON, bool bypa internal async Task HttpUploadLogAsync(string file, Dictionary postData, bool bypassMessage = false) { AddToText($">:> Uploading {Path.GetFileName(file)}"); - var request = new RestRequest(CreateDPSReportLink(), Method.Post); + var request = new RestRequest(CreateDPSReportLink(), Method.Post) + { + RequestFormat = DataFormat.Json, + Timeout = TimeSpan.FromMinutes(8), + }; request.AddBody(postData); - request.RequestFormat = DataFormat.Json; try { request.AddFile("file", file);