nukeop / nuclear

Streaming music player that finds free music for you
https://nuclear.js.org/
GNU Affero General Public License v3.0
11.93k stars 1.03k forks source link

"an error has occurred when searching for streams with invidious. Cannot read property '0' or undefined" #1641

Open KolvertCoga opened 1 month ago

KolvertCoga commented 1 month ago

Platform:Windows 10

Nuclear version:0.6.31

Description of the issue: When trying to play any song I get the following error: "an error has occurred when searching for streams with invidious. Cannot read property '0' or undefined" image

nukeop commented 1 month ago

I can confirm that. This is because the instance we're using in Nuclear now redirects to an instance selection page, e.g. from https://invidious.snopyta.org/api/v1/search?q=Sabrina%20Carpenter%20Espresso&sortBy=relevance&page=1 to https://redirect.invidious.io/api/v1/search?q=Sabrina%20Carpenter%20Espresso&sortBy=relevance&page=1.

Unfortunately, to display that page, it needs to run JS, which Nuclear doesn't do. Selecting one of the available instances fixes the problem: https://iv.datura.network/api/v1/search?q=Sabrina%20Carpenter%20Espresso&sortBy=relevance&page=1

I can see the search results in JSON.

KolvertCoga commented 1 month ago

Hi, I've tried several of the URL on the list one by one, but to no avail. I still get the same error message.

PJV666 commented 1 month ago

I have a same and my friend too.