Skip to content

Conversation

@kar8uncle
Copy link
Contributor

To fix "Voice session error: 1002 on channel <channel id>: Endpoint received a malformed frame" error on voice resuming.

It seems that a resume does not have to succeed after voice connection closes. See Discord documentation Voice#Buffered Resume

The resume may be unsuccessful if the voice gateway buffer for the session no longer contains a message that has been missed. In this case the session will be closed and you should then follow the Connecting flow to reconnect.

In that case, let's clear the modes to cause the next reconnection to be a full reconnection rather than a resume.

Code change checklist

  • I have ensured that all methods and functions are fully documented using doxygen style comments.
  • My code follows the coding style guide.
  • I tested that my change works before raising the PR.
  • I have ensured that I did not break any existing API calls.
  • I have not built my pull request using AI, a static analysis tool or similar without any human oversight.

To fix "Voice session error: 1002 on channel <channel id>: Endpoint
received a malformed frame" error on voice resuming.
@netlify
Copy link

netlify bot commented Jul 13, 2025

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit 597122b
🔍 Latest deploy log https://app.netlify.com/projects/dpp-dev/deploys/687426b620dd8000084050fe
😎 Deploy Preview https://deploy-preview-1463--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kar8uncle kar8uncle changed the base branch from master to dev July 13, 2025 21:36
@github-actions github-actions bot added the code Improvements or additions to code. label Jul 13, 2025
@github-actions
Copy link
Contributor

Thank you for your contribution, but PRs must be raised against the dev branch. Please log your pull request against the dev branch not master. You can also retarget this pull request, then reopen it.

@github-actions github-actions bot closed this Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code Improvements or additions to code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant