ReadFrameAsync() Unknown Opcode (12)
See original GitHub issueIf 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have full control on what messages get put in your console/logs. Just filter them out if you don’t want them.
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 😦