[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#875382: github-backup: giant HTTP exception instead of short, specific "wrong password" message



Package: github-backup
Version: 1.20170301-1
Severity: normal
Usertags: verbose

When I set the GITHUB_PASSWORD environment variable to the wrong
password, github-backup spews out a giant HTTP exception jumble.

Instead, it should give a more useful and concise error message
such as the one in the HTTP response header, combined with the
message parameter from the HTTP response body:

Unauthorized: Bad credentials

I quote from the HTTP exception:

... statusMessage = "Unauthorized" ... {\"message\":\"Bad credentials\"
...

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-rc7-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages github-backup depends on:
ii  git                    1:2.14.1-3
ii  libc6                  2.24-17
ii  libdouble-conversion1  2.0.1-4
ii  libffi6                3.2.1-6
ii  libgmp10               2:6.1.2+dfsg-1
ii  libstdc++6             7.2.0-3
ii  zlib1g                 1:1.2.8.dfsg-5

github-backup recommends no packages.

github-backup suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: