egebilecen / PZServerDiscordBot

A Project Zomboid Discord Bot written in C# using Discord.NET to manage and execute commands on Project Zomboid Server.
GNU General Public License v3.0
61 stars 11 forks source link

WebSocket connection was closed #116

Closed maxcloutier13 closed 6 months ago

maxcloutier13 commented 6 months ago

Hello. I'm having this issue when starting the PZServerDiscordbot.exe. I tried to look it up but it came out mostly as coder's trying to debug their code and I'm not exactly there in python.

Wondering if anyone has an idea how to get this working... Thanks!

Error in psbot.log:

Exception: System.Exception Message: WebSocket connection was closed Stack trace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Discord.ConnectionManager.d34.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 Discord.WebSocket.DiscordSocketClient.d114.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.d31.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.<>cDisplayClass29_0.<b__0>d.MoveNext() Date: 14-12-2023 05:29:27 UTC Bot Version: v1.11.1


Exception: Discord.Net.WebSocketClosedException Message: The server sent close 4014: "Disallowed intent(s)." Stack trace: at Discord.Net.WebSockets.DefaultWebSocketClient.d__34.MoveNext() Date: 14-12-2023 05:29:27 UTC Bot Version: v1.11.1

egebilecen commented 6 months ago

Hello, you have problem in intent configuration. See here.