Slackord icon indicating copy to clipboard operation
Slackord copied to clipboard

[BUG] Discord error 503 causes multiple crashes

Open eastoncrafter opened this issue 3 months ago • 11 comments

Slackord version (please complete the following information):

  • OS: Windows 11
  • Build: Release 5.3.2

Describe the bug When importing a slack dump, slackord works fine but after an hour or so will crash and leave a log showing discord reporting a 503 Service unavailable error.

9/9/2025 9:27:32 AM: PostSingleMessage error: Discord.Net.HttpException: The server responded with error 503: ServiceUnavailable
   at Discord.Net.Queue.RequestBucket.SendAsync(RestRequest request)
   at Discord.Net.Queue.RequestQueue.SendAsync(RestRequest request)
   at Discord.API.DiscordRestApiClient.SendInternalAsync(String method, String endpoint, RestRequest request)
   at Discord.API.DiscordRestApiClient.SendJsonAsync[TResponse](String method, String endpoint, Object payload, BucketId bucketId, ClientBucketType clientBucket, RequestOptions options)
   at Discord.Webhook.WebhookClientHelper.SendMessageAsync(DiscordWebhookClient client, String text, Boolean isTTS, IEnumerable`1 embeds, String username, String avatarUrl, AllowedMentions allowedMentions, RequestOptions options, MessageComponent components, MessageFlags flags, Nullable`1 threadId, String threadName, UInt64[] appliedTags, PollProperties poll)
   at Slackord.Classes.DiscordBot.PostSingleMessage(ReconstructedMessage message, DiscordWebhookClient webhookClient, ITextChannel discordChannel, Dictionary`2 threadStartsDict, Int64 fileSizeLimit, ImportSession session, CancellationToken cancellationToken) in D:\GitHub Projects\Slackord\Slackord\Classes\DiscordBot.cs:line 769
9/9/2025 9:27:32 AM: Unhandled exception: System.Runtime.InteropServices.COMException (0x8001010E)
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32 hr)
   at Microsoft.UI.Xaml.Controls.ContentDialog._IContentDialogFactoryMethods.CreateInstance(IObjectReference _obj, Object baseInterface, IntPtr& innerInterface)
   at Microsoft.UI.Xaml.Controls.ContentDialog..ctor()
   at Microsoft.Maui.Controls.Platform.AlertDialog..ctor()
   at Microsoft.Maui.Controls.Platform.AlertManager.AlertRequestHelper.OnAlertRequested(Page sender, AlertArguments arguments)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

To Reproduce Steps to reproduce the behavior:

  1. Select slackdump folder
  2. Type /resume
  3. Wait for an hour or so while it continues posting the dump
  4. Slackord will crash and leave a log showing a 503

Additional context Don't know what I could try, maybe discord is rate limiting? My dump is incredibly large (excess of 120gb)

Slackord_20250909_092732.log

eastoncrafter avatar Sep 09 '25 16:09 eastoncrafter