After being in a VC for 10-15 minutes, music cannot be played and a 404 is returned.
Getting 404 errors from. Logs with debug mode enabled:
INFO:mafic.node:Connecting to lavalink at http://LAVALINK_IP/v4...
INFO:mafic.node:Connected to lavalink.
DEBUG:mafic.node:Creating task for websocket listener...
DEBUG:mafic.node:Waiting for ready
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'ready', 'resumed': False, 'sessionId': 'd1fSESSID'}
DEBUG:mafic.node:Received event with op ready
DEBUG:mafic.node:Received session ID d1fSESSID
DEBUG:mafic.node:Sending configuration to resume with session ID d1fSESSID
INFO:mafic.node:Sending resume configuration to lavalink with session ID d1fSESSID.
DEBUG:mafic.node:Sending PATCH request to http://LAVALINK_IP/v4/sessions/d1fSESSID and data {'resuming': True, 'timeout': 60}.
DEBUG:mafic.node:Event data: {'op': 'stats', 'frameStats': None, 'players': 0, 'playingPlayers': 0, 'uptime': 151530979, 'memory': {'free': 60699624, 'used': 188861464, 'allocated': 249561088, 'reservable': 4294967296}, 'cpu': {'cores': 6, 'systemLoad': 0.0014650660030190857, 'lavalinkLoad': 0.0003213360848944259}}
DEBUG:mafic.node:Received event with op stats
DEBUG:mafic.node:Received status 200 from lavalink.
DEBUG:mafic.node:Received status 200 from lavalink from path sessions/d1fSESSID
DEBUG:mafic.node:Received raw data {'resuming': True, 'timeout': 60} from sessions/d1fSESSID
INFO:mafic.node:Node MAIN is now available.
DEBUG:mafic.node:Sending GET request to http://LAVALINK_IP/v4/sessions/d1fSESSID/players and data None.
DEBUG:mafic.node:Received status 200 from lavalink.
DEBUG:mafic.node:Received status 200 from lavalink from path sessions/d1fSESSID/players
DEBUG:mafic.node:Received raw data [] from sessions/d1fSESSID/players
DEBUG:nextcord.client:Dispatching event node_ready
DEBUG:nextcord.client:Dispatching event node_stats
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"VOICE_STATE_UPDATE","s":6,"op":0,"d":"REDACTED"}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event voice_state_update
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"INTERACTION_CREATE","s":7,"op":0,"d":{"version":1,"type":2,"token":"REDACTED","member":"REDACTED"}}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event interaction
DEBUG:nextcord.client:nextcord.Client: Found an interaction command.
DEBUG:nextcord.client:nextcord.Client: Calling your application command now SlashApplicationCommand playv2 <function MusicPlayer2.playv2 at 0x0000017FF2CEB1F0>
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"MESSAGE_CREATE","s":8,"op":0,}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event message
DEBUG:nextcord.webhook.async_:Webhook ID 1407311943290720338 with POST https://discord.com/api/v10/interactions/REDACTED/callback has returned status code 204
DEBUG:mafic.player:Connecting to voice channel REDACTED
DEBUG:nextcord.gateway:Updating our voice state to {'op': 4, 'd': {'guild_id': REDACTED, 'channel_id': REDACTED, 'self_mute': False, 'self_deaf': False}}.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"VOICE_STATE_UPDATE","s":9,"op":0,"d":"music_bot_is_playing"}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event voice_state_update
Voice state update for REDACTED in REDACTED
Before session ID: None
After session ID: 803REDACTED
Calling player update
DEBUG:mafic.player:Recieved voice update before node was found.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"VOICE_SERVER_UPDATE","s":10,"op":0,"d":{"token":"418TOKEN","guild_id":"REDACTED","endpoint":"c-lhr10-06ef7002.discord.media:8443"}}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:mafic.player:Getting best node for player
DEBUG:mafic.pool:Strategy SHARD returned nodes MAIN.
DEBUG:mafic.player:Got best node for player: MAIN
DEBUG:mafic.node:Sending player update to lavalink.
DEBUG:mafic.node:Sending PATCH request to http://LAVALINK_IP/v4/sessions/d1fSESSID/players/REDACTED and data {'voice': {'sessionId': '803REDACTED', 'endpoint': 'c-lhr10-06ef7002.discord.media:8443', 'token': '418TOKEN'}}.
DEBUG:mafic.node:Received status 200 from lavalink.
DEBUG:mafic.node:Received status 200 from lavalink from path sessions/d1fSESSID/players/REDACTED
DEBUG:mafic.node:Received raw data {'guildId': 'REDACTED', 'track': None, 'volume': 100, 'paused': False, 'state': {'time': 1755599714664, 'position': 0, 'connected': True, 'ping': 0}, 'voice': {'token': '418TOKEN', 'endpoint': 'c-lhr10-06ef7002.discord.media:8443', 'sessionId': '803REDACTED'}, 'filters': {}} from sessions/d1fSESSID/players/REDACTED
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599714675, 'position': 0, 'connected': True, 'ping': 0}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Sending GET request to http://LAVALINK_IP/v4/loadtracks and data None.
DEBUG:mafic.node:Received status 200 from lavalink.
DEBUG:mafic.node:Received status 200 from lavalink from path loadtracks
DEBUG:mafic.node:Received raw data {'loadType': 'search', 'data': "removed_for_cleanliness"} from loadtracks
DEBUG:mafic.node:Sending player update to lavalink with data {'encodedTrack': 'x'}.
DEBUG:mafic.node:Sending PATCH request to http://LAVALINK_IP/v4/sessions/d1fSESSID/players/REDACTED and data {'encodedTrack': 'TRACK_ENCODE1='}.
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Received status 200 from lavalink.
DEBUG:mafic.node:Received status 200 from lavalink from path sessions/d1fSESSID/players/REDACTED
DEBUG:mafic.node:Received raw data {'guildId': 'REDACTED', 'track': {'encoded': 'TRACK_ENCODE1=', 'info': {'identifier': 'TRACKIDENT', 'isSeekable': True, 'author': 'TRACKAUTH', 'length': 192000, 'isStream': False, 'position': 0, 'title': 'TRACKAUTH | TRACKSONG', 'uri': 'https://www.youtube.com/watch?v=TRACKIDENT', 'sourceName': 'youtube', 'artworkUrl': 'https://i.ytimg.com/vi/TRACKIDENT/mqdefault.jpg', 'isrc': None}, 'pluginInfo': {}, 'userData': {}}, 'volume': 100, 'paused': False, 'state': {'time': 1755599715247, 'position': 0, 'connected': True, 'ping': 0}, 'voice': {'token': '418TOKEN', 'endpoint': 'c-lhr10-06ef7002.discord.media:8443', 'sessionId': '803REDACTED'}, 'filters': {}} from sessions/d1fSESSID/players/REDACTED
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599715247, 'position': 0, 'connected': True, 'ping': 0}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Event data: {'op': 'event', 'type': 'TrackStartEvent', 'guildId': 'REDACTED', 'track': {'encoded': 'TRACK_ENCODE1=', 'info': {'identifier': 'TRACKIDENT', 'isSeekable': True, 'author': 'TRACKAUTH', 'length': 192000, 'isStream': False, 'position': 0, 'title': 'TRACKAUTH | TRACKSONG', 'uri': 'https://www.youtube.com/watch?v=TRACKIDENT', 'sourceName': 'youtube', 'artworkUrl': 'https://i.ytimg.com/vi/TRACKIDENT/mqdefault.jpg', 'isrc': None}, 'pluginInfo': {}, 'userData': {}}}
DEBUG:mafic.node:Received event with op event
DEBUG:nextcord.client:Dispatching event track_start
DEBUG:mafic.player:Received track start event: <TrackStartEvent track=<Track id='TRACK_ENCODE1=' title='TRACKAUTH | TRACKSONG' author='TRACKAUTH' identifier='TRACKIDENT' uri='https://www.youtube.com/watch?v=TRACKIDENT' source='youtube' stream=False seekable=True position=0 length=192000>>
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599715247, 'position': 0, 'connected': True, 'ping': 0}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599720246, 'position': 4920, 'connected': True, 'ping': 0}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599725246, 'position': 9920, 'connected': True, 'ping': 0}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599730246, 'position': 14920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 11.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599735246, 'position': 19920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599740246, 'position': 24920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599745246, 'position': 29920, 'connected': True, 'ping': 14}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599750246, 'position': 34920, 'connected': True, 'ping': 14}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'stats', 'frameStats': None, 'players': 1, 'playingPlayers': 1, 'uptime': 151590978, 'memory': {'free': 43453848, 'used': 206107240, 'allocated': 249561088, 'reservable': 4294967296}, 'cpu': {'cores': 6, 'systemLoad': 0.002228226053533131, 'lavalinkLoad': 0.0021667027783796398}}
DEBUG:mafic.node:Received event with op stats
DEBUG:nextcord.client:Dispatching event node_stats
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599755246, 'position': 39920, 'connected': True, 'ping': 14}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599760246, 'position': 44920, 'connected': True, 'ping': 13}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599765246, 'position': 49920, 'connected': True, 'ping': 13}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599770246, 'position': 54920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 11.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599775246, 'position': 59920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599780246, 'position': 64920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599785246, 'position': 69920, 'connected': True, 'ping': 12}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599790246, 'position': 74920, 'connected': True, 'ping': 12}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599795246, 'position': 79920, 'connected': True, 'ping': 12}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599800246, 'position': 84920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599805246, 'position': 89920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599810246, 'position': 94920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'stats', 'frameStats': None, 'players': 1, 'playingPlayers': 1, 'uptime': 151650977, 'memory': {'free': 35302200, 'used': 214258888, 'allocated': 249561088, 'reservable': 4294967296}, 'cpu': {'cores': 6, 'systemLoad': 0.0020899515131248955, 'lavalinkLoad': 0.0021667027783796398}}
DEBUG:mafic.node:Received event with op stats
DEBUG:nextcord.client:Dispatching event node_stats
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 11.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:mafic.node:Event data: {'op': 'playerUpdate', 'state': {'time': 1755599815246, 'position': 99920, 'connected': True, 'ping': 10}, 'guildId': 'REDACTED'}
DEBUG:mafic.node:Received event with op playerUpdate
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 11.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:mafic.node:Received message from websocket.
DEBUG:mafic.node:Creating task to handle websocket message.
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 11.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 11.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"INTERACTION_CREATE","s":12,"op":0,"d":"play command"}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event interaction
DEBUG:nextcord.client:nextcord.Client: Found an interaction command.
DEBUG:nextcord.client:nextcord.Client: Calling your application command now SlashApplicationCommand playv2 <function MusicPlayer2.playv2 at 0x0000017FF2CEB1F0>
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"MESSAGE_CREATE","s":13,"op":0,"d":"websocket_event_data"}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event message
DEBUG:nextcord.webhook.async_:Webhook ID REDACTED with POST https://discord.com/api/v10/interactions//REDACTED/callback has returned status code 204
DEBUG:mafic.node:Sending GET request to http://LAVALINK_IP/v4/loadtracks and data None.
// track stuff that i cannot be bothered to keep filtering, just tried a different song before "Session not found"
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event voice_state_update
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:Keeping shard ID None websocket alive with sequence 15.
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":null,"s":null,"op":11,"d":null}
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"INTERACTION_CREATE","s":16,"op":0,"d":"song_request"}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event interaction
DEBUG:nextcord.client:nextcord.Client: Found an interaction command.
DEBUG:nextcord.client:nextcord.Client: Calling your application command now SlashApplicationCommand playv2 <function MusicPlayer2.playv2 at 0x0000017FF2CEB1F0>
DEBUG:nextcord.gateway:For Shard ID None: WebSocket Event: {"t":"MESSAGE_CREATE","s":17,"op":0,"d":"reply_to_song_request"}
DEBUG:nextcord.client:Dispatching event socket_event_type
DEBUG:nextcord.client:Dispatching event message
DEBUG:nextcord.webhook.async_:Webhook ID REDACTED with POST https://discord.com/api/v10/interactions/REDACTED/callback has returned status code 204
DEBUG:mafic.node:Sending GET request to http://LAVALINK_IP/v4/loadtracks and data None.
DEBUG:mafic.node:Received status 200 from lavalink.
DEBUG:mafic.node:Received status 200 from lavalink from path loadtracks
DEBUG:mafic.node:Received raw data {"tracks here"} from loadtracks
TRACKAUTH | TRACKSONG False TRACKAUTH https://www.youtube.com/watch?v=TRACKIDENT <Track id='TRACK_ENCODE1=' title='TRACKAUTH | TRACKSONG' author='TRACKAUTH' identifier='TRACKIDENT' uri='https://www.youtube.com/watch?v=TRACKIDENT' source='youtube' stream=False seekable=True position=0 length=192000>
DEBUG:mafic.node:Sending player update to lavalink with data {'encodedTrack': 'TRACK_ENCODE1='}.
DEBUG:mafic.node:Sending PATCH request to http://LAVALINK_IP/v4/sessions/d1fSESSID/players/REDACTED and data {'encodedTrack': 'TRACK_ENCODE1='}.
DEBUG:mafic.node:Received status 404 from lavalink.
Got Traceback (most recent call last):
File "REDACTED\Coding\MusicBot\cogs\player2.py", line 59, in playv2
await voice_client.play(track)
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\player.py", line 709, in play
volume=volume,
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\player.py", line 652, in update
end_time=end_time,
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\node.py", line 1131, in __request
raise HTTPNotFound(text)
mafic.errors.HTTPNotFound: An HTTP error occured: {"timestamp":1755600821991,"status":404,"error":"Not Found","message":"Session not found","path":"/v4/sessions/d1fSESSID/players/REDACTED"} (404)
<__main__.MavicBot object at 0x0000017FEE42C880> True 10 234000
DEBUG:mafic.node:Sending GET request to http://LAVALINK_IP/v4/sessions/d1fSESSID/players and data None.
DEBUG:mafic.node:Received status 404 from lavalink.
DEBUG:nextcord.client:Dispatching event application_command_error
Ignoring exception in command <nextcord.application_command.SlashApplicationCommand object at 0x0000017FF2CF22E0>:
Traceback (most recent call last):
File "REDACTED\Coding\MusicBot\cogs\player2.py", line 59, in playv2
await voice_client.play(track)
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\player.py", line 709, in play
volume=volume,
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\player.py", line 652, in update
end_time=end_time,
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\node.py", line 1131, in __request
raise HTTPNotFound(text)
mafic.errors.HTTPNotFound: An HTTP error occured: {"timestamp":1755600821991,"status":404,"error":"Not Found","message":"Session not found","path":"/v4/sessions/d1fSESSID/players/REDACTED"} (404)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\nextcord\application_command.py", line 918, in invoke_callback_with_hooks
await self(interaction, *args, **kwargs)
File "REDACTED\Coding\MusicBot\cogs\player2.py", line 68, in playv2
await voice_client._node.sync_players()
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\node.py", line 1381, in sync_players
players: list[PlayerPayload] = await self.__request(
File "REDACTED\AppData\Local\Programs\Python\Python39\lib\site-packages\mafic\node.py", line 1131, in __request
raise HTTPNotFound(text)
mafic.errors.HTTPNotFound: An HTTP error occured: {"timestamp":1755600822021,"status":404,"error":"Not Found","message":"Session not found","path":"/v4/sessions/d1fSESSID/players"} (404)
The above exception was the direct cause of the following exception:
nextcord.errors.ApplicationInvokeError: Command raised an exception: HTTPNotFound: An HTTP error occured: {"timestamp":1755600822021,"status":404,"error":"Not Found","message":"Session not found","path":"/v4/sessions/d1fSESSID/players"} (404)
Summary
After being in a VC for 10-15 minutes, music cannot be played and a 404 is returned.
Reproduction Steps
Play a song (to get the bot to join your VC and play)
Wait 15 minutes
Try play another song, get 404.
Minimal Reproducible Code
Expected Results
Song should be able to play fine
Actual Results
Getting 404 errors from. Logs with debug mode enabled:
Lavalink Information
Version: 4.1.1
Build time: 05.06.2025 07:37:42 UTC
Branch HEAD
Commit: 4238202
Commit time: 05.06.2025 07:11:37 UTC
JVM: 24.0.2
Lavaplayer 2.2.3
System Information
Checklist
Additional Context
No response