C2W2 - Graded Assignment 2 : Broken following 2024/11/27 Changes to Web API from Spotify

Hello

No matter what I do in this Exercice 1 I get this output : {‘error’: {‘status’: 404, ‘message’: ‘Not Found’}}

Maybe the provided URL is broken ?

I have debug tested all the parameters of the functions for this cell and (the previous ones). I get my access token successfully. The code to replace seams very simple and straighforward with the hints gave in comments. I have no syntax errors…

I tried also to renew the secret from the API, delete and create again the spotify app connection, still the same result…

All is working properly except for this 404 error.

I managed to make it work once before by retrieving numerous playlist in JSON format but now it seems totally broken.

I think this problem may have occured following a change Spotify communicated today (2024 November 27th) 6h ago :

We want to reiterate the main message from the blog that we’re committed to providing a safe and secure environment for all Spotify stakeholders. As such we have recently made some important changes related to access to some of our endpoints and functionality. You can read the details on the blog: Introducing some changes to our Web API | Spotify for Developers

Web API endpoint integration

Effective today, new Web API use cases will no longer be able to access or use the following endpoints and functionality in their third-party applications. Applications with existing extended mode Web API access that were relying on these endpoints remain unaffected by this change.

Please check also this link about the get-featured-playlists :
https://developer.spotify.com/documentation/web-api/reference/get-featured-playlists

The status of Get Featured Playlists is “OAuth 2.0”,“Deprecated”

Can someone confirm this lab is still working as intended or is it really broken following this change ?

Your help would be greatly appreciated !

Thanks

9 Likes

Thank you @Christophe_Lancien for reporting this.

Notifying staff about the same.

@jessica-dlai can you please check web api. endpoint is deprecated provided in the course as per the recent update by Spotify.

Although @Christophe_Lancien if you are running the codes locally probably the url won’t work due to authorisation issue I suppose.

Regards
DP

3 Likes

Hi @Christophe_Lancien,

I’m facing the same issue today.
It was working just 24 hours ago.
I too suspect that SPOTIFY API changes are the cause.

Thanks, and regards,

1 Like

Any advice on what to do to complete the lab?

I am experiencing the same issue. I had run through that portion of the assignment in the morning and my code was working. When I returned in the afternoon, the code no longer worked. It looks as if the API change was pushed in the interim and Get Featured Playlists had been deprecated. Thanks @Christophe_Lancien for bringing it to everyone’s attention!

1 Like

I have the same issue too.

Hi ! Same issue here
Iwas very worried about what I was doing wrong haha,
sad day to be trying to complete the lab.

1 Like

Hi @Community-Team

Can you please notify someone on the staff team. I had tagged the staff assigned for this course, but probably she hasn’t noticed yet. Please provide an update on this issue.

Regards
DP

3 Likes

Same Issue here too :raised_hand:

Since this is a four-day USA holiday weekend, any DLAI staff who are in the USA will probably not be back at work until Monday.

1 Like

Same issue here too

Same Issue here too how can it be solved

By waiting for the course staff to fix it.

1 Like

@Christophe_Lancien I hadn’t counted on getting extra troubleshooting practice in this assignment, too! It was foreshadowing in the video where Joe talked about APIs changing and breaking ingestion. :smile:

2 Likes

Totally @PressureDrop !
It is an interesting practical case :smile:

1 Like

has it been fixed now?

Not yet @Kunal_Gurung, as said by @Deepti_Prasad and @TMosh, we are waiting for the deeplearning.ai staff : @jessica-dlai and the @Community-Team to fix it

They are already working on it, there is a new reading note in the course on this matter :

The lab makes use of the following two endpoints of the Spotify API:

Starting from November 27 2024, Spotify deprecated the “Get featured Playlists” endpoint (announcement).

We are currently working on updating the lab. We will have the updated lab released by the end of next week.

In the meantime, you can still try the lab and get a complete grade but you will get no response from the API.

I got the same problem. Do you find any solution yet?

Kindly everyone wait until someone responses from the staff, as @TMosh mentioned there is a holiday season in USA, this will probably be looked over by Monday.

Thank you for patience.

3 Likes

@Christophe_Lancien and @Deepti_Prasad Thanks for the update and showing the message that now appears in the course prior to that Assignment. FYI, with those 2 sections unable to produce the json as a result of the deprecated elements in the API, for the grading, the best you can hope for is 65/100 if you submit the assignment.

1 Like