AutoActuary / app-builder

Next iteration of deploy-scripts
0 stars 0 forks source link

Expired tokens should give a user the change to make another token #11

Closed heetbeet closed 2 years ago

malankriel commented 3 years ago

Is this related?

malan@LAPTOP-TK78CL5O MINGW64 /c/aa/niac-ifrs17-engine (master)
$ app-builder -g
Downloading GitHub tag information...
Type new version number for brand new release, else type current version number
v0.5.1-11-g1636da9 to upload assets: v0.6.0
Traceback (most recent call last):
  File "<string>", line 12, in <module>
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\repo\app_builder\main.py", line 46, in <module>
    exec_py.exec_py(this_dir().joinpath("src-legacy", "tools", "application.py"), globals())
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\repo\app_builder\exec_py.py", line 57, in exec_py
    exec(compile(file.read(), filepath, 'exec'), global_names, local_names)
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\repo\app_builder\src-legacy\tools\application.py", line 41, in <module>
    exec_py.exec_py(this_dir().joinpath("..", "deployment-and-release-scripts", "create-github-release.py"), globals())
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\repo\app_builder\exec_py.py", line 57, in exec_py
    exec(compile(file.read(), filepath, 'exec'), global_names, local_names)
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\repo\app_builder\src-legacy\tools\..\deployment-and-release-scripts\create-github-release.py", line 110, in <module>
    github_release.gh_release_create(name_repo,
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\site-packages\github_release.py", line 116, in with_check_for_credentials
    return func(*args, **kwargs)
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\site-packages\github_release.py", line 444, in gh_release_create
    if get_release(repo_name, tag_name) is not None:
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\site-packages\github_release.py", line 259, in get_release
    releases = get_releases(repo_name)
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\site-packages\github_release.py", line 249, in get_releases
    _recursive_gh_get(
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\site-packages\github_release.py", line 155, in _recursive_gh_get
    response.raise_for_status()
  File "C:\Users\malan\AppData\Local\autoactuary\app-builder\versions\v0.1.1\site-packages\requests\models.py", line 953, 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/VirtualActuary/niac-ifrs17-engine/releases
Compiling exe for v0.6.0...
heetbeet commented 2 years ago

No, I think this is related to expired tokens. Another thing I should fix soon

heetbeet commented 2 years ago
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\exec_py.py", line 57, in exec_py
    exec(compile(file.read(), filepath, 'exec'), global_names, local_names)
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\src-legacy\tools\application.py", line 29, in <module>
    exec_py.exec_py(this_dir().joinpath("..", "deployment-and-release-scripts", "create-github-release.py"), globals())
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\exec_py.py", line 57, in exec_py
    exec(compile(file.read(), filepath, 'exec'), global_names, local_names)
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\src-legacy\tools\..\deployment-and-release-scripts\create-github-release.py", line 80, in <module>
    github_release.get_releases(name_repo)
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\site-packages\github_release.py", line 249, in get_releases
    _recursive_gh_get(
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\site-packages\github_release.py", line 155, in _recursive_gh_get
    response.raise_for_status()
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\site-packages\requests\models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/repos/heetbeet/temporary_git_repository/releases
heetbeet commented 2 years ago
Traceback (most recent call last):
  File "<string>", line 12, in <module>
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\main.py", line 52, in <module>
    exec_py.exec_py(this_dir().joinpath("src-legacy", "tools", "application.py"), globals())
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\exec_py.py", line 57, in exec_py
    exec(compile(file.read(), filepath, 'exec'), global_names, local_names)
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\src-legacy\tools\application.py", line 29, in <module>
    exec_py.exec_py(this_dir().joinpath("..", "deployment-and-release-scripts", "create-github-release.py"), globals())
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\exec_py.py", line 57, in exec_py
    exec(compile(file.read(), filepath, 'exec'), global_names, local_names)
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\repo\app_builder\src-legacy\tools\..\deployment-and-release-scripts\create-github-release.py", line 80, in <module>
    github_release.get_releases(name_repo)
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\site-packages\github_release.py", line 249, in get_releases
    _recursive_gh_get(
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\site-packages\github_release.py", line 155, in _recursive_gh_get
    response.raise_for_status()
  File "C:\Users\simon\AppData\Local\autoactuary\app-builder\versions\v0.2.4\site-packages\requests\models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/repos/heetbeet/temporary_git_repository/releases