"用户名或存储库不存在"

问题描述 投票:0回答:1

travis-encrypt OverLordGoldDragon see-rnn; 贮藏室; travis-encrypt 版本:1.3.1, Win OS. 貌似 cli.py 样子 此处,显示构建通过--但还是抛出了一个错误;完整的跟踪如下。

有什么解决办法吗?


Traceback (most recent call last):
  File "d:\anaconda\envs\viz\lib\site-packages\travis\encrypt.py", line 49, in retrieve_public_key
    return response.json()['key'].replace(' RSA ', ' ')
KeyError: 'key'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "d:\anaconda\envs\viz\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\anaconda\envs\viz\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Anaconda\envs\viz\Scripts\travis-encrypt.exe\__main__.py", line 7, in <module>
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "d:\anaconda\envs\viz\lib\site-packages\travis\cli.py", line 68, in cli
    key = retrieve_public_key('{}/{}' .format(username, repository), url)
  File "d:\anaconda\envs\viz\lib\site-packages\travis\encrypt.py", line 52, in retrieve_public_key
    raise InvalidCredentialsError("Either the username: '{}' or the repository: '{}' does not exist. Please enter a valid username or repository name. The username and repository name are both case sensitive." .format(username, repository))
travis.encrypt.InvalidCredentialsError: Either the username: 'OverLordGoldDragon' or the repository: 'see-rnn' does not exist. Please enter a valid username or repository name. The username and repository name are both case sensitive.
python travis-ci
1个回答
0
投票

一个替代方案是通过使用下面的 特拉维斯客户,取自 Travis PyPi部署:

travis encrypt token-name --add deploy.password --com

决议通过: travis-encrypt 可循 本期.

© www.soinside.com 2019 - 2024. All rights reserved.