Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aoede not appearing in Connect to a device #12

Open
JakePorter22 opened this issue Feb 3, 2022 · 8 comments
Open

Aoede not appearing in Connect to a device #12

JakePorter22 opened this issue Feb 3, 2022 · 8 comments

Comments

@JakePorter22
Copy link

JakePorter22 commented Feb 3, 2022

Using the latest prebuilt binary for Windows.

Managed to run it two hours ago with no issues, got it connected to my server and played on Spotify. Trying to run it again now after closing my CMD window and turning off the PC. I get the message that everything is Ready, but no option is showing up in Spotify to connect to the device. Removed all variables in Regedit and set them again with the same issue.

Searched through the Librespot issue tracker, but didn't find much that could help.

I also received emails from Spotify the first three times I ran the exe regarding a new login, but running it now does not yield an email.

Is there a way to fix this or am I better off running the source code?

@codetheweb
Copy link
Owner

If you set the DEBUG environment variable to * (through the same process as the others) it should log whether or not a Spotify session is being created.

@JakePorter22
Copy link
Author

Is there a log file created somewhere? I created the variable as described but I am not seeing anything new in the command window.

@codetheweb
Copy link
Owner

It will log it to the same terminal session you started it from. If you don't see anything the environment variables probably aren't getting set correctly.

@exproject
Copy link

This happens to me as well. Using the pre built binary, the console just logs an invite link (even when using a bot token that is already joined to a server.) Tried setting DEBUG=* in the config file but it didn't result in anything more logging to the console.

@codetheweb
Copy link
Owner

Sorry, got the env vars mixed up with npm's debug package. I think setting RUST_LOG=debug should log more info.

@exproject
Copy link

exproject commented Aug 6, 2023

Hmm, unfortunately no luck still. Still says ready and invite link, but no extra logs to console and still not in Spotify:

Screenshot omits DISCORD_TOKEN as that was done with setx.
image

I do see the bot sign into discord for a split second when the executable runs though.

EDIT: Worked around this by switching to the docker version. Not sure what is different there, but it is able to play from Docker.

@codetheweb
Copy link
Owner

I think it probably gets applied too late if you add it to config.toml, try setting it with setx?

@exproject
Copy link

exproject commented Aug 7, 2023

This was actually an error on my part and both Docker and executable work. The issue (for me at least) was that the while the bot had server level permissions to connect to voice and play, the voice channels were not inheriting perms from the server. Granting the bot same permissions to the channel made it start working and show Aoede in Spotify. I'm guessing while I was tinkering with Docker I made the permission change but didn't connect the dots at the time. Now that I think about it further, I think I was testing in a channel that is normally hidden to @ everyone so perhaps the bot didn't even see me in that channel.

Maybe nothing to change here, but a note to check the voice channel permissions could be nice as the bot doesn't give any indication that it can't follow the user into that channel and it not showing up in the Spotify device list til it sees you gives the impression that something is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants