fbrnch
fbrnch copied to clipboard
Better error when Bugzilla API key expired/invalid
I tried to update a review after my Bugzilla API key expired. This failed with an inscrutable error message:
$ fbrnch create-review -S python-sphinx-autoapi.spec
checking for existing reviews...
fbrnch: BugzillaJSONParseError "Error in $: endOfInput at '<!DOCTYPEHTML>'"
It should check the HTTP response code before trying to parse JSON.
I will try to check on that - not sure if it is a problem in ghc-bugzilla-redhat.
BTW I had opened https://bugzilla.redhat.com/show_bug.cgi?id=2306796 against Bugzilla
The bugzilla.redhat.com fix is actually live now, though I had prepared an unpushed workaround for bugzilla-redhat