Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Crashed when clicking log in. #176

Description

@S1L3NTVOX2K10

I have my discord token for my account, but when I click sign in, it was freezing and I have nothing to do with it and I need your help. I have a crash log: Aerochat version 0.2.5
System.Exception: Could not connect to Discord.
---> System.Net.Http.HttpRequestException: Request headers must contain only ASCII characters.
at System.Net.Http.HttpConnection.g__ThrowForInvalidCharEncoding|56_0()
at System.Net.Http.HttpConnection.WriteString(String s, Encoding encoding)
at System.Net.Http.HttpConnection.WriteHeaderCollection(HttpHeaders headers, String cookiesFromContainer)
at System.Net.Http.HttpConnection.WriteHeaders(HttpRequestMessage request, HttpMethod normalizedMethod)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at DSharpPlus.Net.RestClient.ExecuteRequestAsync(BaseRestRequest request, RateLimitBucket bucket, TaskCompletionSource1 ratelimitTcs) in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Net\Rest\RestClient.cs:line 245 at DSharpPlus.Net.DiscordApiClient.GetGatewayInfoAsync() in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Net\Rest\DiscordApiClient.cs:line 3785 at DSharpPlus.BaseDiscordClient.GetGatewayInfoAsync(String token) in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Clients\BaseDiscordClient.cs:line 241 at DSharpPlus.DiscordClient.InternalUpdateGatewayAsync() in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Clients\DiscordClient.WebSocket.cs:line 511 at DSharpPlus.DiscordClient.InternalConnectAsync() in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Clients\DiscordClient.WebSocket.cs:line 89 at DSharpPlus.DiscordClient.ConnectAsync(DiscordActivity activity, Nullable1 status, Nullable1 idlesince) in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Clients\DiscordClient.cs:line 369 --- End of inner exception stack trace --- at DSharpPlus.DiscordClient.ConnectAsync(DiscordActivity activity, Nullable1 status, Nullable1 idlesince) in D:\Visual Studio Projects\Aerochat\DSP\DSharpPlus\Clients\DiscordClient.cs:line 406 at Aerochat.App.BeginLogin(String givenToken, Boolean save, Nullable1 status) in D:\Visual Studio Projects\Aerochat\Aerochat\App.xaml.cs:line 411
at Aerochat.Windows.Login.SignIn_Click(Object sender, RoutedEventArgs e) in D:\Visual Studio Projects\Aerochat\Aerochat\Windows\Login.xaml.cs:line 158
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Aerochat.App.Main()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions