AmandaDiscord / Volcano

A light-weight LavaLink compatible replacement
MIT License
71 stars 15 forks source link

Node is continuously trying to replay songs non-stop and won't actually play #20

Closed Saud-97 closed 2 years ago

Saud-97 commented 2 years ago

I'm not using any custom application.yml config file currently, it is using the defaults on port 2333.

However when the player is playing anything it will not actually play but will keep replaying the same song. The bot also has green circle (talking indicator) keep blinking.

I checked volcano logs but there was no indication of any errors or abnormalities. If you have a discord support server I would happily join and ask there since I don't think this is considered a bug report.

Logs ```yaml 2022-07-04 13:42:40.054 INFO 47880 --- [ main] index:101:1 : Starting on Saud-PC with PID 47880 (C:\Users\saud\IdeaProjects\Discord-MusicBot\volcano\index.js started by saud in C:\Users\saud\IdeaProjects\Discord-MusicBot\volcano) 2022-07-04 13:42:40.054 INFO 47880 --- [ main] index:102:1 : Using 8 worker threads in pool 2022-07-04 13:42:40.062 INFO 47880 --- [ main] index:502:5 : HTTP and Socket started on port 2333 binding to 0.0.0.0 2022-07-04 13:42:40.062 INFO 47880 --- [ main] index:503:5 : Started in 0.263 seconds (Node running for 0.2959956) 2022-07-04 13:43:04.717 INFO 47880 --- [ main] index:160:5 : Incoming connection from /127.0.0.1:2774 2022-07-04 13:43:04.719 INFO 47880 --- [ main] index:194:9 : Connection successfully established 2022-07-04 13:43:06.909 INFO 47880 --- [ main] index:222:5 : {"op":"volume","guildId":"689135944078852154","volume":100} 2022-07-04 13:43:07.614 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam8231.discord.media:443"}} 2022-07-04 13:43:08.144 INFO 47880 --- [ main] index:222:5 : {"op":"volume","guildId":"684644748073369629","volume":100} 2022-07-04 13:43:09.420 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"684644748073369629","event":{"token":"a8c97e945412ec12","guild_id":"684644748073369629","endpoint":null}} 2022-07-04 13:43:10.793 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"684644748073369629","event":{"token":"a8c97e945412ec12","guild_id":"684644748073369629","endpoint":"dubai949.discord.media:443"}} 2022-07-04 13:43:19.958 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam8231.discord.media:443"}} 2022-07-04 13:43:19.969 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam8231.discord.media:443"}} 2022-07-04 13:43:20.181 INFO 47880 --- [ main] index:347:9 : Got request to load for identifier "ytsearch:asdasd" 2022-07-04 13:43:20.356 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:21.126 INFO 47880 --- [ main] index:222:5 : {"op":"play","guildId":"689135944078852154","track":"QAAAZgIABmFzZGFzZAAKbmd1eW4gYmluaAAAAAAAAAfQAAtlVDk4Y1NmaGdpQQABACdodHRwczovL3lvdXR1YmUuY29tL3dhdGNoP3Y9ZVQ5OGNTZmhnaUEAB3lvdXR1YmUAAAAAAAAAAA=="} 2022-07-04 13:43:23.562 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:24.575 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:25.643 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:26.722 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:27.713 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:28.713 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:29.780 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} 2022-07-04 13:43:30.436 INFO 47880 --- [ main] index:222:5 : {"op":"stop","guildId":"689135944078852154"} 2022-07-04 13:43:30.701 INFO 47880 --- [ main] index:222:5 : {"sessionId":"8dd5b3884cdae72078175f4dc4acff6d","op":"voiceUpdate","guildId":"689135944078852154","event":{"token":"4166f894c3f37241","guild_id":"689135944078852154","endpoint":"rotterdam656.discord.media:443"}} ```
NyanSpaghetti commented 2 years ago

Here's a link to the support server

PapiOphidian commented 2 years ago

Volcano v1.1.4 hopefully fixes this. Let me know if it does not

Saud-97 commented 2 years ago

I just tried it, the bug still there. Just thinking, is there a way to detect why is it replaying the track? Perhaps enabling some kind of logging or debugging where the logic happens.

Saud-97 commented 2 years ago

Ok good news, It turned out that I had wrong dependencies versions, I think the package.json needs to be tuned a bit to indicate that the versions are incorrect or something Because when I did a fresh clone I created a new node_modules which fixed the issue.