Provide meaningful error messages when Mixxx fails to lookup MusicBrainz metadata

Bug #1184158 reported by jus
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Medium
Max Linke

Bug Description

Tested with lp:trunk

Currently Mixxx always trows a "Sorry. Mixxx could not find this song" message.

There is no distinction between:
A) no matching metadata for the selected track available @MusicBrainz
b) no connection to the MusicBrainz servers (User offline, connection blocked, host down, etc.)

jus (jus)
description: updated
description: updated
Changed in mixxx:
importance: Undecided → Medium
status: New → Confirmed
Max Linke (max-linke)
Changed in mixxx:
milestone: none → 1.12.0
assignee: nobody → Max Linke (max-linke)
Revision history for this message
Max Linke (max-linke) wrote :

This patch will load a network error page if one of the HTTP requests fails. Otherwise the old error message is shown

Max Linke (max-linke)
Changed in mixxx:
status: Confirmed → In Progress
Revision history for this message
jus (jus) wrote :

Thanks Max, tried your patch.
Some comments:

The new network error page says:
"Sorry
Mixx can't connect to the internet
HTTP status: 0"

* "Error" should replace the word "Sorry"
We should emphasize that there an error, no need to apologize
* Because thee patch does not differentiate between host down ("The server is not responding or is not reachable") and no internet connection ("The Internet connection appears to be offline"), we should at least specify the problem and provide some tips as to how the problem may be solved.

* Drop the "HTTP status" bit if it can't provide extra information to the person who is troubleshooting. Is there even a status 0? Not listed in https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

* The translatable strings in the *.ui files contain unwanted HTML blobs. We generally try to get rid of them ( lp:954234 ), at least we should not introduce new ones. A translator is currently presented a text in the form of

<html><head/><body><p align="center">Mixxx can't connect to the internet</p></body></html>

This often leads to translation errors, or even untranslated strings. Using unambiguous strings is the foundation for having strings translated.

It may seem a bit too much noise for such a simple simple error message, but let's not forget that devs knows a product in much more detail then the average user, who is the addressee of the message.

Revision history for this message
Max Linke (max-linke) wrote :

I only tried the error messages when I disconnected my internet. Then Qt gives me 0 as a HTTP Error. I guess that is their code for 'no connection'. I'll see if I can test this more and update the patch then, I would in general like to keep the HTTP status when I can use it to distinguish between host down and no internet connection.

I'll also check the ui file again to remove the HTML blobs

Revision history for this message
Max Linke (max-linke) wrote :
jus (jus)
Changed in mixxx:
status: In Progress → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7053

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.