Error after trying to add the new music provider: StopIteration interacts badly with generators and cannot be raised into a Future
I can confirm that YT music works for me as of 2025 June 16. I used the following versions:
Home Assistant 2025.6.1
MA (beta) 2.6.0b11
PO Token Generator 1.1.0
When I was trying with PO Token Generator 1.1.0 and MA (stable) 2.5.4, I was getting the same error as you: StopIteration interacts badly with generators and cannot be raised into a Future but if I looked at the MA Logs (Home Assistant Settings / Add-ons / Music Assistant Server - Logs Tab) I could see that MA could tell that there was a version mismatch between MA server and PO Token Server, but then failed to fetch a token with a RemoteDisconnected error.
Updating MA Server to the beta build solved the problem!
Same issue here.
I will wait for the update of MA. The Wifefactor doesn´t allow betas =)
Are there any updates on this? I installed the beta but I’m still having the same issue as the others have reported. It will not accept my cookie.
I was having the same issue, but after switching to the latest stable version 2.5.5 (not the beta), it got resolved. You might want to try that if you haven’t already.
I have version 2.5.5. installed as well as the beta and neither is working for me.
Same here… I have version 2.5.5. This is what the log is showing me…
ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
2025-07-01 23:52:50.616 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/save: ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
WARNING: [youtube] dQw4w9WgXcQ: Signature extraction failed: Some formats may be missing
player = https://www.youtube.com/s/player/e12fbea4/player_ias.vflset/en_US/base.js
Please report this issue on GitHub · Where software is built , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
WARNING: Only images are available for download. use --list-formats to see them
ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
2025-07-01 23:53:33.684 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/save: ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
It worked for a while on the latest stable version, but today it stopped working again. Seems like the issue is back.
Had the same issue, there is a new beta out and now it works like a charme (again).
MA: 2.6.0b14
TO: 1.1.0
im getting this too with the latest version that came out yesterday when adding music provider:
MA: 2.5.8
PO: 1.2.1
StopIteration interacts badly with generators and cannot be raised into a Future
I got the same problem.
the error occurs when you try to add youtube music as provider
LOG in Music Assistant
WARNING: [youtube] [pot] Error fetching PO Token from “bgutil:http” provider: PoTokenProviderError(‘Error reaching POST /get_pot (caused by <HTTPError 500: Internal Server Error>)’); please report this issue to the provider developer at GitHub · Where software is built .
2025-08-21 18:52:09.529 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/save: StopIteration interacts badly with generators and cannot be raised into a Future
LOG in YT Token Generator
Using challenge from /att/get
Error: Failed to generate an integrity token. (caused by Error: Unexpected empty integrity token, response: {“integrityToken”:null,“estimatedTtlSecs”:43200,“mintRefreshThreshold”:null,“websafeFallbackToken”:“MlKDeY2157sRQoM_6yIVHnVqpzbqNM3KFztLStxT8cwxYoCWF6lgjX59GU0KXh7qSJbhF0KjEA0264uilL5HOf98bVIEl2qdFzV5s1EximZ2G4vq”})
at SessionManager.generateTokenMinter (file:///app/build/session_manager.js:294:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SessionManager.generatePoToken (file:///app/build/session_manager.js:400:29)
at async file:///app/build/main.js:47:29
im getting this too now
ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
This seems to have been fixed with the release of Music Assistant 2.6.0 yesterday. Where I previously got this error when setting up Youtube Music as a music provider it now works.
I am also curious why “dQw4w9WgXcQ” is used. Maybe because it is a Youtube video/song that will probably always exist with this specific video ID and is therefore a good connectivity test?
Latest stable version is working now
Hi I’m getting the “ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats”
error
Can’t play anything from the YouTube Music provider. I get the following error:
Error opening input files: Server returned 403 Forbidden (access denied)
2025-10-23 00:03:54.566 ERROR (MainThread) [music_assistant.audio.cache] Error while creating cache for ytmusic://track/fFk4t1Z0iPM: FFMpeg error 8
2025-10-23 00:03:54.568 WARNING (MainThread) [music_assistant.player_queues] Skipping unplayable item Nickelback - Far Away (ytmusic://track/fFk4t1Z0iPM)
Getting the same error today:
ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
Just came here too fighting this with the error: ERROR: [youtube] dQw4w9WgXcQ: Requested format is not available. Use --list-formats for a list of available formats
I’m very new to Home Assistant in general.
I can keep fighting this…but my question…is it actually worth it? (I don’t mean this critiically I’m just trying to understand why this is even the approach to play music…maybe streaming music via Home Assistant and a streaming service is a bridge too far?
ie.If this is going to keep dropping out is the workflow better to either:
Find some other streaming service (spotify?)
Just stick with ‘normal’ youtube music in the browser and cast music a different way?
Just use local music like back in the 90s? Anyway I can keep trying to solve this but I’m curious about why we should even try to hack this? Thanks!
Edit:So I’ve been using chatgpt to try and help figure this out too…what it suggests is that this is all the wrong approach.
ie. Are we better off getting Google itself to just play to the various devices…but we use HA to talk to Google? Anyway will keep researching…but am trying to figure out what the workflow is!
Is it not working currently or am I doing something wrong?
I can browse liked music but not play anything.
[in#0 @ 0x7f7ee8999c00] Error opening input: Server returned 403 Forbidden (access denied)
Error opening input file ...url...
Error opening input files: Server returned 403 Forbidden (access denied)
2025-10-25 11:25:58.439 ERROR (MainThread) [music_assistant.audio.cache] Error while creating cache for ytmusic://track/PE8XxN9vmnE: FFMpeg error 8
2025-10-25 11:26:13.125 WARNING (MainThread) [ffmpeg.130] [https @ 0x7f2a806b9680] HTTP error 403 Forbidden
[https @ 0x7f2a806b9680] Will reconnect at 0 in 0 second(s).
[https @ 0x7f2a806b9680] HTTP error 403 Forbidden
[https @ 0x7f2a806b9680] Will reconnect at 0 in 1 second(s).
[https @ 0x7f2a806b9680] HTTP error 403 Forbidden
[https @ 0x7f2a806b9680] Will reconnect at 0 in 3 second(s).
[https @ 0x7f2a806b9680] HTTP error 403 Forbidden
[https @ 0x7f2a806b9680] Will reconnect at 0 in 7 second(s).
[https @ 0x7f2a806b9680] HTTP error 403 Forbidden
[https @ 0x7f2a806b9680] Will reconnect at 0 in 15 second(s).
[https @ 0x7f2a806b9680] HTTP error 403 Forbidden
2025-10-25 11:26:13.125 ERROR (MainThread) [music_assistant.audio.cache] Error while creating cache for ytmusic://track/PE8XxN9vmnE: FFMpeg error 8
2025-10-25 11:26:13.127 WARNING (MainThread) [music_assistant.player_queues] Skipping unplayable item Popsi og Krelle - 5 Små Aber (ytmusic://track/PE8XxN9vmnE)
same here, seems to be broken ![]()