question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After update to v3.6.19 I have Get Playlist 404

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

  • Using latest version of spotcast
  • I have setup the Spotify integration in Home Assistant
  • I am using multiple accounts
  • Using latest stable version of Home Assistant
  • I have Spotify Premium
  • I’m attaching relevant logs with level debug for component spotcast (see README)
  • I’m using entity_id in the service call and have tried device_name but the issue remains

Describe the bug After last update v3.6.19 new error apper Can’t get playlist

image

Debug log 2021-11-04 10:50:44 ERROR (SyncWorker_7) [spotipy.client] HTTP Error for GET to https://api.spotify.com/v1/views/playlists returned 404 due to Not found. 2021-11-04 10:50:44 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.playlists_sensor fails Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/spotipy/client.py", line 245, in _internal_call response.raise_for_status() File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.spotify.com/v1/views/playlists?content_limit=10&locale=en&platform=web&types=album%2Cplaylist%2Cartist%2Cshow%2Cstation&limit=10&offset=0 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 468, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 658, in async_device_update raise exc File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/spotcast/sensor.py", line 98, in update resp = self.hass.data[DOMAIN]["controller"].get_playlists( File "/config/custom_components/spotcast/spotcast_controller.py", line 293, in get_playlists resp = client._get( File "/usr/local/lib/python3.9/site-packages/spotipy/client.py", line 291, in _get return self._internal_call("GET", url, payload, kwargs) File "/usr/local/lib/python3.9/site-packages/spotipy/client.py", line 261, in _internal_call raise SpotifyException( spotipy.exceptions.SpotifyException: http status: 404, code:-1 - https://api.spotify.com/v1/views/playlists?content_limit=10&locale=en&platform=web&types=album%2Cplaylist%2Cartist%2Cshow%2Cstation&limit=10&offset=0: Not found., reason: None

Environment (please complete the following information):

  • HA version: [ ]
  • spotcast version: [ ]

Configuration Add your configuration

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jazzyisjcommented, Nov 6, 2021

@Darkfull-Dante just confirming I have updated to 3.6.21 and all seems ok.

Thank you for the rapid bugfix!

1reaction
fcussoncommented, Nov 5, 2021

@gmcmicken @snp88 to be completely honest its fully my fault, I completely forgot to activate the sensor when doing QA. I’ll work on a proper QA procedure that we can add in our documentation, so we don’t make silly mistaken like this one. Sorry for any inconvenient that the bad release might have caused

Read more comments on GitHub >

github_iconTop Results From Across the Web

YouTube Playlist API Returning 404 Error - Stack Overflow
All of a sudden all my YouTube videos on my site have disappeared, I am using the following URL to get the information...
Read more >
iOS9 : Responding with a 404/503 e… - Apple Developer
iOS9 : Responding with a 404/503 error to a playlist on NSURLProtocol aborts playback. We use an NSURLProtocol subclass to handle the requests...
Read more >
Untitled
Smallville season 3 episode 4 online, Park clean up clipart, Business accelerator programs, Spetsnaz pistol holster for sale, Ashkar karate, Adhurs comedy ...
Read more >
Brightcove Player Release Notes Archive
VERSION 6 - v6.36.5 · This Video.js update includes support for a new Picture-in-Picture button. · The button will only appear when the...
Read more >
Untitled
#bhatra New assets test, Opposition pdf descargar, Glengary wv snow storm? ... 1000 tracklist, Argentine country, How to update carrier settings iphone 5, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found