fondberg / spotcast

Home assistant custom component to start Spotify playback on an idle chromecast device as well as control spotify connect devices
Apache License 2.0
668 stars 95 forks source link

Getting this error "Invalid Spotify account specified" #446

Open MorkvomOrk169 opened 1 month ago

MorkvomOrk169 commented 1 month ago

Bug Ticket

Describe the bug

Everytime I try to choose a Spotify music thing to play on my chromecast using the media-browser i get the before metionend error. In every other way the spotcast integration does what its supposed to do :( E.g in automations scripts and so on just the usual way to pick which music I want to play via the dashboard/media-browser is not working. There are also no other error/bug messages being displayed in the logs.

Troubleshooting

Make sure to validate all the elements before submitting the ticket (Exception to the steps marked as optional)

Environment

Configuration

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# Spotcast configuration
spotcast:
  sp_dc: !secret sp_dc
  sp_key: !secret sp_key

# Media source configuration
media_source:

#Secrets.yaml
sp_dc:
sp_key:

Service Call

If relevant, provide a yaml of the service call or explain the action taken to replicate the issue.

<insert the yaml of the service call here>

Logs

<please insert any relevent logs here>

Additional context

fcusson commented 1 month ago

@MorkvomOrk169 Please provide your configuration (secrets removed) and the list of spotify integration player in your home assistant

MorkvomOrk169 commented 1 month ago

I am sry im fairly new to HASS so what do you mean with the list of spotify integration player? I added the config to my former post

fcusson commented 1 month ago

@MorkvomOrk169 can you confirm what media_player where created when you did the spotify setup?

Also could you provide the full error log, not just the name of the error, that might provide more details

MorkvomOrk169 commented 1 month ago

Mediaplayer.spotify...

Felix Cusson @.***> schrieb am Do., 1. Aug. 2024, 02:44:

@MorkvomOrk169 https://github.com/MorkvomOrk169 can you confirm what media_player where created when you did the spotify setup?

— Reply to this email directly, view it on GitHub https://github.com/fondberg/spotcast/issues/446#issuecomment-2261725205, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBQDSFAFZSW7YAY62R3DJXLZPGAFRAVCNFSM6AAAAABLSDYW7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRG4ZDKMRQGU . You are receiving this because you were mentioned.Message ID: @.***>

fcusson commented 1 month ago

@MorkvomOrk169 I really don,t have enough to work with currently. Could you please provide the information in your system log related to the error?

fcusson commented 1 month ago

I've been able to isolate the problem to spotify integration. They are the one raising the error here

I'll have to dig further into why certain account aren't working. I had to refresh my connection to the spotify integration and my account no longer works, but my wife's account is still working perfectly.

MorkvomOrk169 commented 1 month ago

Ah ok thank you , I thought the whole time it has sth to do with the spotcast integration but that makes way more sense. If you have any more infos/bugfixes let me know!

Felix Cusson @.***> schrieb am Mi., 14. Aug. 2024, 00:24:

I've been able to isolate the problem to spotify integration. They are the one raising the error here https://github.com/home-assistant/core/blob/29887c2a17d40c7e413919ef09557ea0f3dfb6ef/homeassistant/components/spotify/browse_media.py#L176

I'll have to dig further into why certain account aren't working. I had to refresh my connection to the spotify integration and my account no longer works, but my wife's account is still working perfectly.

— Reply to this email directly, view it on GitHub https://github.com/fondberg/spotcast/issues/446#issuecomment-2287244953, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBQDSFFSZRGOOH6XTHXXNY3ZRKBRDAVCNFSM6AAAAABLSDYW7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBXGI2DIOJVGM . You are receiving this because you were mentioned.Message ID: @.***>

fcusson commented 1 month ago

We are still the one providing the play service to the spotify integration, so they might have changed something that causes the account to report but improperly now. The bug might still be on our side at this point