doctr icon indicating copy to clipboard operation
doctr copied to clipboard

API error when you have push access but not access to upload keys

Open asmeurer opened this issue 4 years ago • 0 comments

For instance

Traceback (most recent call last):
  File "/Users/aaronmeurer/anaconda3/bin/doctr", line 10, in <module>
    sys.exit(main())
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/doctr/__main__.py", line 572, in main
    return process_args(get_parser(config=config))
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/doctr/__main__.py", line 260, in process_args
    return args.func(args, parser)
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/doctr/__main__.py", line 497, in configure
    upload_GitHub_deploy_key(deploy_key_repo, public_ssh_key, **login_kwargs)
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/doctr/local.py", line 312, in upload_GitHub_deploy_key
    return GitHub_post(data, DEPLOY_KEY_URL, **login_kwargs)
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/doctr/local.py", line 223, in GitHub_post
    GitHub_raise_for_status(r)
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/doctr/local.py", line 212, in GitHub_raise_for_status
    r.raise_for_status()
  File "/Users/aaronmeurer/anaconda3/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.github.com/repos/pyflyby/pyflyby/keys

asmeurer avatar Oct 25 '19 20:10 asmeurer