deep-gaurav / MusicPiped

A Materialistic Music player that streams music
GNU General Public License v3.0
437 stars 59 forks source link

Socket Error on Search (It appears the issue is with the invidious API) #162

Open ifndefJOSH opened 2 years ago

ifndefJOSH commented 2 years ago

Hey, just downloaded your app from F-Droid, but I ran into a small issue, described below:

Bug Description: Upon downloading version 2.2.0 from F-Droid I attempted to search for an artist and got the following Dart exception:

Exception: SocketException: OS Error: Connection refused, errno=111, address=invidious.13ad.de, port=42568

It appears this is the URL from one of the web APIs you are using, as referenced in main.dart:50

var brightness = ValueNotifier("dark");
var invidiosAPI = ValueNotifier("https://invidious.13ad.de/");
var quality = ValueNotifier("best");

I cannot find 13ad.de on the list of available instances on Invidious' website, and public whois data for 13ad.de gives me the following:

% Restricted rights.
% 
% Terms and Conditions of Use
% 
% The above data may only be used within the scope of technical or
% administrative necessities of Internet operation or to remedy legal
% problems.
% The use for other purposes, in particular for advertising, is not permitted.
% 
% The DENIC whois service on port 43 doesn't disclose any information concerning
% the domain holder, general request and abuse contact.
% This information can be obtained through use of our web-based whois service
% available at the DENIC website:
% http://www.denic.de/en/domains/whois-service/web-whois.html
% 
% 

Domain: 13ad.de
Nserver: ns81.domaincontrol.com
Nserver: ns82.domaincontrol.com
Status: connect
Changed: 2021-08-14T04:25:00+02:00

Admittedly, this raises a couple of red flags regarding this particular instance of Invidious. Perhaps you could use one of the other public instances or even host your own?

System Information: Android 10 - Kernel 4.4.192-perf+ Moto G7 Plus

ifndefJOSH commented 2 years ago

Others appear to have faced a similar issue (see issue #143 )

EricLauber commented 1 year ago

There is a setting to change the target invidious API. I changed, reloaded, and everything is working.