DiscordMediaLoader icon indicating copy to clipboard operation
DiscordMediaLoader copied to clipboard

Program fails after entering correct token

Open Xetaxheb opened this issue 5 years ago • 3 comments

I know my token is correct (no quotes), on first run it requires "this could get you banned - yes" followed by "enter token:" and I enter the token and hit go, it pops up the "enter token:" window again (with the textbox still populated) and if I click go a second time it crashes and asks about submitting a bug report

Details

[1/24/2020 - 4:24:10 PM] (Info): Starting up Discord Media Loader application... [1/24/2020 - 4:24:10 PM] (Warn): Settings not found. Creating new one. This is normal on first start up... [1/24/2020 - 4:24:11 PM] (Info): Loaded settings. [1/24/2020 - 4:24:11 PM] (Info): Trying to log into discord... [1/24/2020 - 4:24:13 PM] (Info): DiscordClient: Discord.Net v1.0.2 (API v6) [1/24/2020 - 4:24:13 PM] (Info): DiscordClient: Connecting [1/24/2020 - 4:24:13 PM] (Warn): DiscordClient: [1/24/2020 - 4:24:13 PM] (Info): DiscordClient: Disconnecting [1/24/2020 - 4:24:13 PM] (Info): DiscordClient: Disconnected [1/24/2020 - 4:24:14 PM] (Info): DiscordClient: Connecting [1/24/2020 - 4:24:14 PM] (Warn): DiscordClient: [1/24/2020 - 4:24:14 PM] (Info): DiscordClient: Disconnecting [1/24/2020 - 4:24:14 PM] (Info): DiscordClient: Disconnected [1/24/2020 - 4:24:15 PM] (Error): A task was canceled. [TaskCanceledException] occured at: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Discord.ConnectionManager.<>c__DisplayClass28_0.<<StartAsync>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.ConnectionManager.<StopAsync>d__29.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.WebSocket.DiscordSocketClient.<StopAsync>d__92.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.WebSocket.DiscordSocketClient.<OnLogoutAsync>d__90.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.Rest.BaseDiscordClient.<LogoutInternalAsync>d__37.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.Rest.BaseDiscordClient.<LoginInternalAsync>d__34.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.Rest.BaseDiscordClient.<LoginAsync>d__33.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at DML.Client.DMLClient.<Login>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at DML.Application.Classes.Core.<Run>d__14.MoveNext()

Xetaxheb avatar Jan 25 '20 00:01 Xetaxheb

Hey,

can you remove the configuration File in %appdata%\Serraniel\Discord Media Loader directory in try again? In #31 somebody reported a similar behaviour after the entered token wasn´t working the first time.

Serraniel avatar Jan 25 '20 16:01 Serraniel

Sorry I thought I said but it must have slipped my mind. I tried clearing that several times. Same outcome.

As well as relogging discord for new tokens.

Xetaxheb avatar Jan 26 '20 00:01 Xetaxheb

I have tried to reproduce the issue for my self several times now with either invalid tokens or wrong formatted tokens. For invalid tokens I do not get an exception to occur, the token dialog just pop ups again (as expected). For wrong formatted token I receive a The format of value '<token>' is invalid. exception. But this is different from the one you posted and happens before the connection starts.

From the logs it looks like the used Discord API lib is having an issue establishing a connection with your account. I am not sure why this should happen. I am aware of an issue a single person had in the past which was fixed by changing his nickname in Discord but I don´t know any more how this happened and when. You could try that, too.

if I click go a second time it crashes and asks about submitting a bug report

Can you please try submitting this? Maybe the error details in Sentry.io may show some more details.

Serraniel avatar Jan 28 '20 18:01 Serraniel