question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReadFrameAsync() Unknown Opcode (12)

See original GitHub issue

If i call AudioInStream.ReadFrameAsync(), nothing happens and the log shows the following:

22:47:00 Discord     Discord.Net v2.1.1 (API v6)
22:47:01 Gateway     Connecting
22:47:01 Gateway     Connected
22:47:02 Gateway     Ready
22:47:07 Audio #1    Connecting
22:47:07 Audio #1    Unknown OpCode (Hello)
22:47:07 Audio #1    Connected
ReadFrameAsync
22:47:09 Audio #1    Unknown OpCode (12)

The code i used:

[Command("join", RunMode = RunMode.Async)]
public async Task JoinAsync()
{
    var channel = discord.GetChannel(1337);
    if (channel is SocketVoiceChannel voiceChannel)
    {
        audioClient = await voiceChannel.ConnectAsync();
        audioClient.StreamCreated += AudioClient_StreamCreated;
    }
}

private async Task AudioClient_StreamCreated(ulong userid, AudioInStream stream)
{
    Console.WriteLine("ReadFrameAsync");
    var frame = await audioStream.ReadFrameAsync(System.Threading.CancellationToken.None);
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AntiTcbcommented, Nov 4, 2020

You have full control on what messages get put in your console/logs. Just filter them out if you don’t want them.

0reactions
zorkindcommented, Nov 4, 2020

We are in 2.2 and these messages still exist.

Please, can we disable them? they are annoying, i use my bot to stream audio and every time i join a voice channel i get those 3 messages 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - ReadFrameAsync() Unknown Opcode (12) -
If i call AudioInStream.ReadFrameAsync(), nothing happens and the log shows the following: 22:47:00 Discord Discord.
Read more >
Jetty Websocket, closing session OpCode 12
When it got to the opcode parsing, it found that code to be 12, which is invalid (per spec), so it terminated the...
Read more >
SystemError: unknown opcode : PY-24022 - YouTrack
The error triggers at line 243 when debugging test cases (not always), but runs without error if I'm running the test suite from...
Read more >
Unrecognized frame opcode: 7
The only error I get is: "Unrecognized frame opcode: 7". I use Google Chrome 16.0.912.75. Step by step: - WebSocket available
Read more >
nhm_windows_3.0.0.6.exe
This report has 12 indicators that were mapped to 10 attack techniques and ... Makes a code branch decision directly after an API...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found