willkg / henry

henry is a github issue cli that caches data locally for airplane access
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

GET https://api.github.com/repos/henry/issues is 404 #2

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

When running it in the local directory git clone of this repo

{'Status': '404 Not Found', 'X-RateLimit-Remaining': '59', 'X-GitHub-Media-Type': 'github.v3', 'Content-Security-Policy': "default-src 'none'", 'X-Content-Type-Options': 'nosniff', 'Access-Control-Expose-Headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type', 'Transfer-Encoding': 'chunked', 'X-GitHub-Request-Id': 'D2EE:5C75:2A333B4:386FD9F:5E1403D6', 'Strict-Transport-Security': 'max-age=31536000; includeSubdomains; preload', 'X-XSS-Protection': '1; mode=block', 'Server': 'GitHub.com', 'X-RateLimit-Limit': '60', 'Date': 'Tue, 07 Jan 2020 04:06:47 GMT', 'Access-Control-Allow-Origin': '*', 'Referrer-Policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', 'Content-Type': 'application/json; charset=utf-8', 'X-Frame-Options': 'deny', 'Content-Encoding': 'gzip', 'X-RateLimit-Reset': '1578373606'}
{"message":"Not Found","documentation_url":"https://developer.github.com/v3/repos/#get"}
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/jayvdb/projects/python/henry/henry/__main__.py", line 4, in <module>
    main()
  File "henry/cmdline.py", line 256, in main
    cmdline_handler('henry', args)
  File "henry/cmdline.py", line 244, in cmdline_handler
    return fun(scriptname, command, argv)
  File "henry/cmdline.py", line 195, in cache_cmd
    data['get_issues'] = get_issues(user, repo, auth)
  File "henry/restapi.py", line 297, in get_issues
    return repo_api.issues.get(auth=auth).json()
  File "henry/restapi.py", line 200, in get
    resp = self._request('GET', **args)
  File "henry/restapi.py", line 184, in _request
    response=resp)
henry.restapi.Http4xxException: HTTP 404: GET https://api.github.com/repos/henry/issues