-
Bug
-
Resolution: Fixed
-
High
-
2.1
-
None
Loading my collection some album load requests fail reliable with 401 responses. Example:
E: 15:16:37,532 /usr/lib/python3.7/site-packages/picard/webservice/_init_._handle_reply:383: Network request error for https://musicbrainz.org:443/ws/2/release/4c54ee58-86df-3ba5-aaad-6b284293141b?inc=release-groups+media+recordings+artist-credits+artists+aliases+labels+isrcs+collections+user-collections+artist-rels+release-rels+url-rels+recording-rels+work-rels+recording-level-rels+work-level-rels: Host requires authentication (QT code 204, HTTP code 401)
E: 15:16:37,534 /usr/lib/python3.7/site-packages/picard/album.error_append:222: Host requires authentication
The same URL works fine with browser. Also other albums work reliable with the same settings.
I currently don't understand what is happening, could also be a server issue. Needs to be investigated.
I think I know what is happening: The affected requests are all result of a redirect (due to MBID merging or such). While we authenticate the first redirect we don't authenticate the second one. We have to make sure to carry over the authentication in case of redirects.