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

Discord RPC stuck on "Browsing Tidal" #449

Closed
HurleybirdJr opened this issue Aug 1, 2024 · 2 comments
Closed

Discord RPC stuck on "Browsing Tidal" #449

HurleybirdJr opened this issue Aug 1, 2024 · 2 comments

Comments

@HurleybirdJr
Copy link
Contributor

Problem:

As title suggests, no matter what I do (reinstall, re-login, toggle RPC on and off, etc...) the rich presence never shows the current song playing and appears to only show "Browsing Tidal". I've also tried viewing the activity via the profile view, and that also shows the same thing.

image

And with the settings for Discord RPC, I've tried toggling all in different configurations and renaming the texts, but nothing gets it out of the idle state. I've also tried changing songs since that used to help it update, but that doesn't work either.

image

Tidal-hifi version:

5.15.0

Discord version:

stable 314046 (408a13e) Host 0.0.62 x64 Build Override: N/A Linux 64-bit (6.10.2-arch1-1)

@HurleybirdJr
Copy link
Contributor Author

Having looked through other issues for possible fixes/workarounds, I tried running Tidal-hifi via the terminal and noticed that when I start playing a song with Discord RPC enabled, this error block keeps appearing every second or so:

(node:11465) UnhandledPromiseRejectionWarning: Error: child "activity" fails because [child "assets" fails because [child "large_text" fails because ["large_text" length must be at least 2 characters long]]]
    at RPCClient._onRpcMessage (/opt/tidal-hifi/resources/app.asar/node_modules/discord-rpc/src/client.js:178:19)
    at IPCTransport.emit (node:events:517:28)
    at /opt/tidal-hifi/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:138:18
    at decode (/opt/tidal-hifi/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:92:5)
    at Socket.<anonymous> (/opt/tidal-hifi/resources/app.asar/node_modules/discord-rpc/src/transports/ipc.js:120:7)
    at Socket.emit (node:events:517:28)
    at emitReadable_ (node:internal/streams/readable:601:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
(node:11465) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 30)

@HurleybirdJr
Copy link
Contributor Author

HurleybirdJr commented Aug 1, 2024

OK, so I just figured out the cause of the problem and a solution.

Turns out the album name was actually less than 2 chars:​

image

This caused the API to freak out since it doesn't like largeImageTexts less than 2 chars, so I've added a fix in a PR #450 to mitigate this issue by adding an extra space, which Discord automatically trims as trailing white-space, so the API is happy and isn't visually borked either :)

Feel free to edit the fix as you please 👍🏼

Mastermindzh added a commit that referenced this issue Aug 5, 2024
Fix issue #449 Discord RPC stuck on "Browsing Tidal"
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

1 participant