Open jspaaks opened 2 years ago
Currently if you try to run
def get_from_github_with_auth_api(url, apikeys): """ """ headers = { "Accept": "application/vnd.github.v3+json" } username = apikeys.get("github-user") key = apikeys.get("github-key") return requests.get(url, headers, auth=(username, key), timeout=10)
using bad credentials, the error message is not very helpful. We could update any authenticated calls to make use of the response objects's text or content fields
text
content
Currently if you try to run
using bad credentials, the error message is not very helpful. We could update any authenticated calls to make use of the response objects's
text
orcontent
fields