rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.35k stars 603 forks source link

No Search Results for Artist using Headphones Mirror #3276

Closed hubdows closed 2 years ago

hubdows commented 2 years ago

Hi, a new issue just started. I am not getting any artist/album search results.

Timestamp Level Message
2021-10-06 18:24:07 INFO Adding 5 to queue
2021-10-06 18:24:07 WARNING Attempt to query MusicBrainz for pennywise failed (caused by: )
2021-10-06 18:23:58 INFO Adding 5 to queue
2021-10-06 18:23:58 WARNING Attempt to query MusicBrainz for pennywise failed (caused by: )
2021-10-06 18:23:21 INFO Scheduled background task: Check GitHub for updates
2021-10-06 18:23:21 INFO Scheduled background task: MusicBrainz Update
2021-10-06 18:23:21 INFO Scheduled background task: Library Scan
hubdows commented 2 years ago

Debug is not producing any additional information.

hubdows commented 2 years ago

A little more information. It looks like "http://musicbrainz.codeshy.com" requests are being redirected to HTTPS, and Headphones is not following the redirect. Here is the TCP Stream from Wireshark.

GET /ws/2/artist/?limit=100&query=artist%3A%28pennywise%29 HTTP/1.1 Accept-Encoding: identity Host: musicbrainz.codeshy.com:80 Content-Length: 0 Connection: close Authorization: Basic aHViZG93czpKdWx5MjAxOSFAIw== User-Agent: beets/1.4.4-headphones python-musicbrainzngs/0.7devheadphones ( http://beets.io/ )

HTTP/1.1 301 Moved Permanently Server: nginx Date: Fri, 08 Oct 2021 15:43:18 GMT Content-Type: text/html Content-Length: 162 Connection: close Location: https://musicbrainz.codeshy.com/ws/2/artist/?limit=100&query=artist%3A%28pennywise%29

301 Moved Permanently

301 Moved Permanently


nginx
hubdows commented 2 years ago

The "config.html" file lists https://musicbrainz.codeshy.com, so I'm not sure why it's sending out a port 80 request. Anyway, I changed the advanced Musicbrainz setting back to Musicbrainz, and the searches started working again. The issue is with the Headphones mirror.

hubdows commented 2 years ago

I upgraded Python to v2.7.18 from v.2.7.9, which seemed to clear up the issue. Using the sni_test.py script in the /contrib folder to test SSL and SNI checking, I also updated pyOpenSSL to v.21.0.0.