Skip to content

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

Open
@asmeurer

Description

@asmeurer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions