Program fails after entering correct token #33

Open
opened 2020-01-25 01:27:36 +01:00 by Xetaxheb · 3 comments
Xetaxheb commented 2020-01-25 01:27:36 +01:00 (Migrated from github.com)

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.<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.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.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.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.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.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.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.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.d__14.MoveNext()

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> <summary>Details</summary> [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() </details>
Serraniel commented 2020-01-25 17:27:18 +01:00 (Migrated from github.com)

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.

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.
Xetaxheb commented 2020-01-26 01:07:38 +01:00 (Migrated from github.com)

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.

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.
Serraniel commented 2020-01-28 19:43:27 +01:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Serraniel/DiscordMediaLoader#33
No description provided.