Skip to content

Commit

Permalink
Increased the timeout to prevent error 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Plenyx committed Jul 15, 2024
1 parent 2d40049 commit 2bc7d80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Forms/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,12 @@ internal async Task SendLogToTwitchChatAsync(DpsReportJson reportJSON, bool bypa
internal async Task HttpUploadLogAsync(string file, Dictionary<string, string> 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);
Expand Down

0 comments on commit 2bc7d80

Please sign in to comment.