Skip to content

Daemon crash on failure connecting to discord #1033

@chui-xelleron

Description

@chui-xelleron

A misconfigured discord bot took the Daemon down.

00:06:43.581 [INF] Netclaw.Daemon.Services.BinaryUpdateCheckService: Netclaw is up to date (v0.18.1)
00:06:44.608 [ERR] Netclaw.Channels.Discord.Transport.DiscordNetGatewayClient: [Discord.Net] Gateway: (null)
System.Net.WebSockets.WebSocketException (0x80004005): WebSocket connection was closed
 ---> Discord.Net.WebSocketClosedException: The server sent close 4014: "Disallowed intent(s)."
   at Discord.Net.WebSockets.DefaultWebSocketClient.RunAsync(CancellationToken cancelToken)
   at Discord.WebSocket.DiscordSocketClient.OnConnectingAsync()
   at Discord.ConnectionManager.ConnectAsync(CancellationTokenSource reconnectCancelToken)
   at Discord.ConnectionManager.<>c__DisplayClass29_0.<<StartAsync>b__0>d.MoveNext()
00:06:44.625 [INF] Netclaw.Channels.Discord.Transport.DiscordNetGatewayClient: [Discord.Net] Gateway: Disconnecting
00:06:44.632 [INF] Netclaw.Channels.Discord.Transport.DiscordNetGatewayClient: [Discord.Net] Gateway: Disconnected
00:06:46.285 [INF] Akka.Actor.ActorSystem: [INFO][05/17/2026 00:06:46.284Z][Thread 0014][CoordinatedShutdown (akka://netclaw)] Starting coordinated shutdown

This is resolved by enabling these 3 intents on the bot.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingchannelsDiscord, Slack, and other channels.configConfiguration issues, netclaw doctor, schema validation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions