C2W2E1 Status 404 not found

When creating a post, please add:

Trouble Shooting Code from JupyterLab Notebook

access_token = token.get('access_token')

print("Access Token:", access_token)

response = requests.get(url="https://api.spotify.com/v1/browse/featured-playlists", headers=get_auth_header(access_token))

Access Token: BQC2dKvq2tv8UnqinEphvSnNId6XTR3PhjUalTgL8E2kgGj-drb4OMy8HFA-_EY2LZ67YKGIcDH_WZnKrKO0SnqgX9ksSZpOIF_HyZVWQ49UQRKHDcs

headers = get_auth_header(token.get('access_token'))

headers

{'Authorization': 'Bearer BQC2dKvq2tv8UnqinEphvSnNId6XTR3PhjUalTgL8E2kgGj-drb4OMy8HFA-_EY2LZ67YKGIcDH_WZnKrKO0SnqgX9ksSZpOIF_HyZVWQ49UQRKHDcs'}

response = requests.get(url = "https://api.spotify.com/v1/browse/featured-playlists", headers = get_auth_header(token.get('access_token')))

response = response.json()

response

{'error': {'status': 404, 'message': 'Not Found'}}

Hello @Andrew_Wilkie,
features-playlists has been deprecated and will now give a 404 error (starting from 27 of November). The lab has been updated and uses Get new releases and Get album tracks. Could you try without this url, thanks

1 Like