#1126442 reportbug does not handle HTTP-error 503 appropriately

#1126442#5
Date:
2026-01-26 08:25:01 UTC
From:
To:
Dear Maintainer,

Currently, the BTS is a bit broken, cf. #1126340.

When I run reportbug from terminal and retrieval of current bug-reports starts,
I receive



% reportbug

(reportbug:579150): Gtk-WARNING **: 09:14:23.929: Failed to set text 'Error
retrieving information on existing bug reports from the BTS. The following
error was detected:
Unable to connect to Debian BTS (error: "<HTTPError 503: 'All backends failed
or unhealthy'>");
Do you still want to file a report?' from markup due to error parsing markup:
Error on line 2 char 59: “503:” is not a valid name

(reportbug:579150): Gtk-WARNING **: 09:14:23.964: Failed to set text 'Error
retrieving information on existing bug reports from the BTS. The following
error was detected:
Unable to connect to Debian BTS (error: "<HTTPError 503: 'All backends failed
or unhealthy'>");
Do you still want to file a report?' from markup due to error parsing markup:
Error on line 2 char 59: “503:” is not a valid name



Then, the reportbug-ui itself shows an empty popup-window with only the buttons
"Yes" and "No" with no other content. After clicking "Yes", I can continue to
enter my BTS-text, as I do right now.

Thank you for looking this up!
Benjamin

#1126442#10
Date:
2026-03-12 15:51:10 UTC
From:
To:
Hello,

the reason of the bug is that the error message contains "<" and ">" characters
which must be encoded as HTML entities before feeding the user interface.

Please find the attached patch, which fixes this issue.

Best regards,		 	Georges.

bh_bts@mailbox.org a écrit :