core: Spotify Integration does not load: Max Retries Reached

The problem

The official Spotify integration doesnt seem to load.

What version of Home Assistant Core has the issue?

core-2023.1.4

What was the last working version of Home Assistant Core?

core-2023.1.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Spotify

Link to integration documentation on our website

https://www.home-assistant.io/integrations/spotify/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-01-13 14:34:08.529 ERROR (SyncWorker_7) [spotipy.client] Max Retries reached
2023-01-13 14:34:09.927 DEBUG (MainThread) [homeassistant.components.spotify] Finished fetching Lusan Devices data in 3.453 seconds (success: False)
2023-01-13 14:34:09.927 DEBUG (MainThread) [homeassistant.components.spotify] Finished fetching David Devices data in 3.431 seconds (success: False)
2023-01-13 14:34:10.626 ERROR (MainThread) [homeassistant.components.rest.data] Error fetching data: http://192.168.2.168:6415/entities failed with All connection attempts failed
2023-01-13 14:34:19.994 DEBUG (SyncWorker_6) [spotipy.client] Sending GET to https://api.spotify.com/v1/me/ with Params: {} Headers: {'Authorization': 'Bearer BQBnNNxm8x8RmIX8BKbY9UhqXLfEEmYBIxoIGSCVAqmjHG02KtOiGgeFVlpLIIBieT6nQENQQfmvVxd8gZJ4pC5s4x77KZW7TBfFJnPCqF8NUEAECK3LLdMapnMEplO2g77WLfZ4SpfX6YfnfB-tRo6N7Lv8Zg8i-sFMxDPA9O0vtErmOJ-AyAC37djf0kUDveyHzGd2HsL-WPBGVlIZOhRu1O-rFQXtLRt-iVW0jBesminTaLvPEnNKCCmMLui7jw', 'Content-Type': 'application/json'} and Body: None
2023-01-13 14:34:20.088 DEBUG (SyncWorker_6) [spotipy.client] RESULTS: {'country': 'NL', 'display_name': 'Lusansmith', 'explicit_content': {'filter_enabled': False, 'filter_locked': False}, 'external_urls': {'spotify': 'https://open.spotify.com/user/w6w0zzigz46nnj0my9jvxagu8'}, 'followers': {'href': None, 'total': 2}, 'href': 'https://api.spotify.com/v1/users/w6w0zzigz46nnj0my9jvxagu8', 'id': 'w6w0zzigz46nnj0my9jvxagu8', 'images': [], 'product': 'premium', 'type': 'user', 'uri': 'spotify:user:w6w0zzigz46nnj0my9jvxagu8'}
2023-01-13 14:34:20.095 DEBUG (SyncWorker_5) [spotipy.client] Sending GET to https://api.spotify.com/v1/me/player/devices with Params: {} Headers: {'Authorization': 'Bearer BQBnNNxm8x8RmIX8BKbY9UhqXLfEEmYBIxoIGSCVAqmjHG02KtOiGgeFVlpLIIBieT6nQENQQfmvVxd8gZJ4pC5s4x77KZW7TBfFJnPCqF8NUEAECK3LLdMapnMEplO2g77WLfZ4SpfX6YfnfB-tRo6N7Lv8Zg8i-sFMxDPA9O0vtErmOJ-AyAC37djf0kUDveyHzGd2HsL-WPBGVlIZOhRu1O-rFQXtLRt-iVW0jBesminTaLvPEnNKCCmMLui7jw', 'Content-Type': 'application/json'} and Body: None
2023-01-13 14:34:20.328 DEBUG (SyncWorker_2) [spotipy.client] Sending GET to https://api.spotify.com/v1/me/ with Params: {} Headers: {'Authorization': 'Bearer BQCsidxYOf-IvDOP2JNjEyWeCcjxFTpZMyz5eewlO2aOG1yTSQN0iGq_2fNqptuQBhaj8Geq0ybud8PA2MGbdnZDpvYmPKmR118CgoJM7OBN-S0p2V0M6qEs68Ye6uP1xbO9Psm67896TLlfcVFGZraFumzNH0zKL6mTI-PrA0NqzsjEb6_8DpjeHubgLj17i-5dqr5EPqmoWqZ0n3IMmwmmBM2I-vcZhYG2WPg6tOu-Z6D1X8WBDRJcilo_SjfJNQ', 'Content-Type': 'application/json'} and Body: None
2023-01-13 14:34:20.420 DEBUG (SyncWorker_2) [spotipy.client] RESULTS: {'country': 'NL', 'display_name': 'David', 'explicit_content': {'filter_enabled': False, 'filter_locked': False}, 'external_urls': {'spotify': 'https://open.spotify.com/user/5f19frx3lxb8lfpgib8oztc7g'}, 'followers': {'href': None, 'total': 3}, 'href': 'https://api.spotify.com/v1/users/5f19frx3lxb8lfpgib8oztc7g', 'id': '5f19frx3lxb8lfpgib8oztc7g', 'images': [{'height': None, 'url': 'https://i.scdn.co/image/ab6775700000ee85680f1ff1304b620194bcef8e', 'width': None}], 'product': 'premium', 'type': 'user', 'uri': 'spotify:user:5f19frx3lxb8lfpgib8oztc7g'}
2023-01-13 14:34:20.421 DEBUG (SyncWorker_8) [spotipy.client] Sending GET to https://api.spotify.com/v1/me/player/devices with Params: {} Headers: {'Authorization': 'Bearer BQCsidxYOf-IvDOP2JNjEyWeCcjxFTpZMyz5eewlO2aOG1yTSQN0iGq_2fNqptuQBhaj8Geq0ybud8PA2MGbdnZDpvYmPKmR118CgoJM7OBN-S0p2V0M6qEs68Ye6uP1xbO9Psm67896TLlfcVFGZraFumzNH0zKL6mTI-PrA0NqzsjEb6_8DpjeHubgLj17i-5dqr5EPqmoWqZ0n3IMmwmmBM2I-vcZhYG2WPg6tOu-Z6D1X8WBDRJcilo_SjfJNQ', 'Content-Type': 'application/json'} and Body: None
2023-01-13 14:34:22.043 ERROR (SyncWorker_5) [spotipy.client] Max Retries reached

Additional information

Both accounts are premium

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 6
  • Comments: 29 (1 by maintainers)

Most upvoted comments

Anybody else still get these “max retries” error messages even while the integration now loads?

Yes, I have exactly same problem more than 3 days. See copy from the log below and last problem tonight.

Logger: spotipy.client Source: components/spotify/media_player.py:363 First occurred: 04:42:30 (1 occurrences) Last logged: 04:42:30

Max Retries reached