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

YouTube Music Plugin Error: "Unable to fetch PO Token for web_music client" and "No audio was received" #3531

Open
1 task done
tibrezus opened this issue Feb 3, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tibrezus
Copy link

tibrezus commented Feb 3, 2025

What version of Music Assistant has the issue?

2.4.0b23

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

After successfully registering with the YouTube Music plugin using my cookie and user ID, playback works as expected for about 30 minutes. However, after this period, I encounter the following errors:

  • "Unable to fetch PO Token for web_music client: Missing required Data Sync ID for account"
    This warning appears repeatedly in the logs, suggesting an issue with authentication or session management, what ID should I use? Right now I use my email address

The issue disrupts playback by looping the track playback start without any audio being heard, and requires manual intervention which implies restarting the music assistant service.

How to reproduce

  1. Register with the YouTube Music plugin using a valid cookie and user ID.
  2. Start playback of a track or queue.
  3. Allow playback to continue for approximately 30 minutes.
  4. Observe the errors in the logs and the failure of playback.

Music Providers

YouTube Music

Player Providers

Slimproto (Squeezebox Players)

Full log output

d5369777_music_assistant_beta_2025-02-03T12-01-31.342Z.log

Additional information

This happens with all the musicassistant versions, stable beta and dev, I'm fighting with it for months now.
I run the music assistant plugin on a raspberry pi 4 8GB RAM, While looping in the playback process with no audio the CPU goes to 100% on one thread, memory is also quite high reachine over 1GB based on the usage I make.
Other providers work just fine.

What version of Home Assistant Core are your running

2025.1.4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

@tibrezus tibrezus added the triage label Feb 3, 2025
@OzGav
Copy link
Contributor

OzGav commented Feb 3, 2025

@MarvinSchenkel

@RobinR1
Copy link

RobinR1 commented Feb 7, 2025

I see the same on stable, except that restarting MA server disabled the YT provider with the above mentioned errors repeated evey two minutes:

WARNING: [youtube] Unable to fetch PO Token for web_music client: Missing required Data Sync ID for account. You may need to pass a Data Sync ID with --extractor-args "youtube:data_sync_id=XXX"

WARNING (MainThread) [music_assistant] Error loading provider(instance) YouTube Music: User does not have Youtube Music Premium (will be retried later)

I see in pytubefix project fixes related PO token and botdetection:
https://github.com/JuanBindez/pytubefix/tree/v8.12.0
https://github.com/JuanBindez/pytubefix/tree/v8.12.1

@MarvinSchenkel MarvinSchenkel self-assigned this Feb 8, 2025
@MarvinSchenkel MarvinSchenkel added bug Something isn't working and removed triage labels Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants