Announcements

Help Wizard

Step 1

NEXT STEP

Recommendations endpoint doesn't respond

Recommendations endpoint doesn't respond

Hello, 

I've been working on this webapp for months now with these lines without issue : 

 

 

 

 $recommendationsOptions = [
                'limit' => 20,
                'seed_artists' => $seedArtists,
                'seed_tracks' => $seedTracks,
                'seed_genres' => $seedGenres,
                'market' => $api->me()->country,
                'target_popularity' => 100
            ];
           
            
            try
            {
            $recommendations = $api->getRecommendations($recommendationsOptions);
            }
            catch(SpotifyWebAPIException $e)
            {
            $recommendations=null;
            echo($e);
            }

 

 

 

 

But since yesterday evening, these lines are making the browser loading infinitely. The page never ends up loading the content.

 

I've been using these lines for moths so I believe the recomendation endpoint have changed somehow this week end?

 

Any clue?

 

Thx

 

Benji

 

Plan

Premium

Country

FR

Device

Macbook, iPhone 13 mini, browsers...

Operating System

Any

 

My Question or Issue

 

Reply
10 Replies

Bug disapeared this morning, it should be due to Spotify servers...

Well this behavior just came back yesterday morning, 

 

Iโ€™ll try with another account. 

anybody here experiencing the same issue?

It's happening to me 2. Just like you describe it.

Ok so the issue has nothing to do with our code. 

Anyway the most annoying for me is my inability to manage this error even if the request is in a try catch block. 
any idea about that?

I have the exact same question but other than setting a timeout ourselves to detect when the request is taking longer than usual I don't know what would work. Besides my application relies on these requests to work so I simply cannot have it working if I'm blocked for entire days.

Can you post your recommendations options so we can compare both?

I'm literally only using 5 track seeds, no other options...

Iโ€™m currently having issues with the recommendations and rate limiting.  All other webApi calls work fine.  I have my code set to capture any 429 errors and delay the request based on the Retry-After returned in the header.  Itโ€™s in seconds and Iโ€™m being return 22050!!!

Bug popped up a hour ago... For the 31st eve argh!!

Did anyone succeed in catching this error in symfony or plain php??

Still struggling with this...

I achieved to reproduce the same request with curl on a terminal and the request succeeds... while still freezes on my symfony using curl php function... app

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random