Skip to content

Lavalink.py generates errors when it receives messages from the Lavalink server #153

@maxsspeaker

Description

@maxsspeaker

Summary

Over time, errors begin to appear in the logs, some people complain that their player is broken

Lavalink & System Version

Arch Linux ARM last verison on 31.12.2024
python 3.12
Lavalink.py 5.9.0
Lavalink 4.0.8

  • youtube-source 1.11.2

Reproduction

at a random moment an error begins to appear in the logs related to receiving data from the Lavalink server, although now it has turned into spam

Expected Results

The error should not occur, or some explanation for this situation

Actual Results

[Node:maxsspeaker-node] Unexpected error occurred whilst processing websocket message
Traceback (most recent call last):
File "/home/maxsspeaker/.local/lib/python3.12/site-packages/lavalink/transport.py", line 230, in _handle_message_safe
await self._handle_message(msg.json())
File "/home/maxsspeaker/.local/lib/python3.12/site-packages/lavalink/transport.py", line 274, in _handle_message
await self._handle_event(data)
File "/home/maxsspeaker/.local/lib/python3.12/site-packages/lavalink/transport.py", line 303, in _handle_event
assert player.current is not None
^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Checklist

  • [+] Have you checked that there aren't other open Bug Reports for the same problem?
  • [+] Have you checked that your Lavalink password isn't visible?
  • [+] Have you given a traceback if possible?

изображение

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