Open mwoehlke-kitware opened 2 years ago
Can you include version information about github3.py, it's dependencies, and the version of Python you're using? We can definitely fix this, I just want to make sure it's definitely a bug in the latest version
I did the following:
$ docker run --rm -it ubuntu:jammy
# apt update && apt install -y python3-pip
# pip3 install github3.py
# python3
>>> gh = github3.GitHub()
>>> repo = gh.repository('uNetworking','uSockets')
>>> repo.latest_release()
This reproduces the issue. It should also be trivial to reproduce this environment to get whatever version information you want; however, AFAICT, the relevant code hasn't changed and this should be just as trivially reproducible on master. Basically, _User._update_attributes
expects to get a JSON object, but gets None
because of the "author": null
that is sent in the reply.
latest_release()
is dying with:This happens on https://api.github.com/repos/uNetworking/uSockets/releases/latest, which, as of reporting, is https://api.github.com/repos/uNetworking/uSockets/releases/tags/v0.8.1, which are producing
"author": null
rather than"author": {...}
.This looks to be similar to #988.