Skip to content

[websocket: close 4016: Unknown encryption mode] Bot Almost Never Connects to Voice Channels Correctly #1686

@oceaster

Description

@oceaster

9/10 times this the logs I see, when my bot connects to a voice channel - meaning it appears in the channel, seems ok, but can't play audio or receive audio.

2025/12/17 11:28:47 [DG0] voice.go:534:wsHeartbeat() error sending heartbeat to voice endpoint c-lhr09-3274d1fb.discord.media:8443, websocket: close sent
2025/12/17 11:28:42 [DG0] voice.go:403:wsListen() voice endpoint c-lhr09-3274d1fb.discord.media:8443 websocket closed unexpectantly, websocket: close 4016: Unknown encryption mode.

For a while forcing all my channels to be US East temporarily solved this issue, but then it started happening on those channels as well.

I've tried and tried to resolve this issue and simply cannot, it is library related.

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