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

[Bug]: Discord RPC fails if a song's title is only one character long #1314

Closed
2 tasks done
fee1-dead opened this issue Oct 14, 2023 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working fix-available A fix to the issue is available in a new version

Comments

@fee1-dead
Copy link

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

YouTube Music (Application) Version

2.1.0

What operating system are you using?

Other Linux

Operating System Version

NixOS 23.11.20231011.5e4c2ad (Tapir)

What arch are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Expected Behavior

Discord RPC to work

Actual Behavior

Doesn't work. Error logs:

RPC_INVALID_PAYLOAD: child "activity" fails because [child "details" fails because ["details" length must be at least 2 characters long]]
    at NR.setActivity (/nix/store/h1if47hbqi41cz2ni6yq4rm75hnhn7d8-youtube-music-2.1.0/share/lib/youtube-music/resources/app.asar/dist/index.js:37:110939)
    at ux (/nix/store/h1if47hbqi41cz2ni6yq4rm75hnhn7d8-youtube-music-2.1.0/share/lib/youtube-music/resources/app.asar/dist/index.js:320:320048)
    at /nix/store/h1if47hbqi41cz2ni6yq4rm75hnhn7d8-youtube-music-2.1.0/share/lib/youtube-music/resources/app.asar/dist/index.js:320:320132
    at IpcMainImpl.<anonymous> (/nix/store/h1if47hbqi41cz2ni6yq4rm75hnhn7d8-youtube-music-2.1.0/share/lib/youtube-music/resources/app.asar/dist/index.js:37:119226)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 4000
}

Additional Information

Here's a link to a song with a title that is only one character long: https://music.youtube.com/watch?v=fJbfrgE3zpk

@JellyBrick JellyBrick added the bug Something isn't working label Oct 14, 2023
@JellyBrick
Copy link
Collaborator

Thanks for the bug report!
It should be fixed in 5c49b28 👍

image

@fee1-dead
Copy link
Author

Thanks for the quick fix!

@JellyBrick JellyBrick added the fix-available A fix to the issue is available in a new version label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix-available A fix to the issue is available in a new version
Projects
None yet
Development

No branches or pull requests

2 participants