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

Spotify links doesn't work anymore #6446

Closed
M4th12 opened this issue Sep 4, 2024 · 2 comments
Closed

Spotify links doesn't work anymore #6446

M4th12 opened this issue Sep 4, 2024 · 2 comments
Labels
Closed: User Error The user is misusing Red.

Comments

@M4th12
Copy link

M4th12 commented Sep 4, 2024

What Red version are you using?

3.5.13

What were you trying to do?

Trying to listen some music using Spotify links

What did you expect to happen?

Start the music

What actually happened?

Nothing, except error on console

[2024-09-05 00:28:12] [INFO] discord.client: logging in using static token
[2024-09-05 00:28:13] [INFO] red: Loading packages...
[2024-09-05 00:28:14] [ERROR] red.core.cogs.Streams: Twitch OAuth2 API request failed with status code 400 and error message: missing client id
[2024-09-05 00:28:14] [INFO] red: Loaded packages: permissions, admin, alias, audio, cleanup, customcom, downloader, economy, filter, general, image, mod, modlog, mutes, reports, streams, trivia, warnings
[2024-09-05 00:28:15] [INFO] discord.gateway: Shard ID 0 has connected to Gateway (Session ID: 7abdb0e66d8351927cde110f0bc14d8b).
[2024-09-05 00:28:15] [INFO] red: Connected to Discord. Getting ready...
[2024-09-05 00:28:18] [INFO] red.Audio.manager: Managed Lavalink node startup command: 'C:\Program Files\Java\jdk-17\bin\java.exe' -Xms64M -Xmx7G -jar 'C:\Users\Server\AppData\Local\Red-DiscordBot\cogs\Audio\Lavalink.jar'
[2024-09-05 00:28:18] [INFO] red.Audio.manager: Managed Lavalink node started. PID: 12088
[2024-09-05 00:28:18] [INFO] red.Audio.manager: Waiting for Managed Lavalink node to be ready
[2024-09-05 00:28:25] [INFO] red.Audio.manager: Managed Lavalink node is ready to receive requests.
[2024-09-05 00:28:25] [INFO] red.Audio.WS.LLNode: Lavalink WS connecting to ws://localhost:2333 with headers {'Authorization': 'youshallnotpass', 'User-Id': '1194401660861157557', 'Num-Shards': '1', 'Client-Name': 'Red-Lavalink/0.11.0', 'Resume-Key': 'Red-Core-Audio-1194401660861157557-YTBot'}
[2024-09-05 00:28:27] [INFO] red.Audio.WS.LLNode: Lavalink WS connected to ws://localhost:2333
[2024-09-05 00:28:45] [ERROR] red: KeyError
Traceback (most recent call last):
File "C:\Users\Server\redenv\Lib\site-packages\discord\ext\commands\core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Server\redenv\Lib\site-packages\redbot\cogs\audio\core\commands\player.py", line 128, in command_play
return await self._get_spotify_tracks(ctx, query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Server\redenv\Lib\site-packages\redbot\cogs\audio\core\utilities\player.py", line 283, in _get_spotify_tracks
raise e
File "C:\Users\Server\redenv\Lib\site-packages\redbot\cogs\audio\core\utilities\player.py", line 262, in _get_spotify_tracks
res = await self.api_interface.spotify_query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Server\redenv\Lib\site-packages\redbot\cogs\audio\apis\interface.py", line 392, in spotify_query
urls = await self.fetch_spotify_query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Server\redenv\Lib\site-packages\redbot\cogs\audio\apis\interface.py", line 223, in fetch_spotify_query
) = await self.spotify_api.get_spotify_track_info(track, ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Server\redenv\Lib\site-packages\redbot\cogs\audio\apis\spotify.py", line 67, in get_spotify_track_info
track_name = track_data["name"]
~~~~~~~~~~^^^^^^^^
KeyError: 'name'

How can we reproduce this error?

1.Start the bot
2.Use the command to add a song from spotify (%play https://open.spotify.com/intl-it/track/6KmrCHbuNOsdoeDOpwetr7?si=5314fcead96a4042)

Anything else?

No response

@M4th12 M4th12 added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Sep 4, 2024
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Sep 4, 2024
@delphyinium
Copy link

It looks like your link might be bad. I just tried that exact song through your link, no luck. If I go to Spotify and copy the same song and do it, the player works fine. Try this: https://open.spotify.com/track/6KmrCHbuNOsdoeDOpwetr7?si=e5ba859759ca498e

@M4th12
Copy link
Author

M4th12 commented Sep 15, 2024

Yeah, you are right. Mine has /intl-it/, your doesn't. I tried now and is working and Spotify now is giving the same link as you.
Idk why was giving the link like that

@Flame442 Flame442 added Closed: User Error The user is misusing Red. and removed Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. Status: Needs Triage This has not been labeled or discussed for handling yet. labels Oct 1, 2024
@Flame442 Flame442 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed: User Error The user is misusing Red.
Projects
None yet
Development

No branches or pull requests

3 participants