waka-readme-stats icon indicating copy to clipboard operation
waka-readme-stats copied to clipboard

BUG

Open MengFanjun020906 opened this issue 1 year ago • 4 comments

Describe the bug When runworkflow,AssertionError

To Reproduce Steps to reproduce the behavior:

  1. Go to Actions
  2. Click on 'run workflow‘
  3. See error

Expected behavior I want to make waka-readme success

Additional context The error: Traceback (most recent call last): File "/waka-readme-stats/main.py", line 230, in run(main()) File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/waka-readme-stats/main.py", line 212, in main init_github_manager() File "/waka-readme-stats/manager_github.py", line 22, in init_github_manager GitHubManager.prepare_github_env() File "/waka-readme-stats/manager_github.py", line 47, in prepare_github_env github = Github(EM.GH_TOKEN) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/github/MainClass.py", line 150, in init auth = Auth.Token(login_or_token) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/github/Auth.py", line 108, in init assert len(token) > 0 ^^^^^

MengFanjun020906 avatar Jan 06 '24 07:01 MengFanjun020906

you can see this picture image

MengFanjun020906 avatar Jan 06 '24 07:01 MengFanjun020906

I'm experiencing the same issue. I have been experiencing it since December 3rd.

v1peridae avatar Jan 13 '24 06:01 v1peridae

Fixed for me!

v1peridae avatar Jan 19 '24 06:01 v1peridae

I reset the secrets and it worked

v1peridae avatar Jan 19 '24 06:01 v1peridae

Yeah, I experienced the same issue, and resetting the token resolved it. However, I believe there should be some exception handling in place.

Prathamesh-B avatar Jan 26 '24 04:01 Prathamesh-B

How to reset the token? I've regenerated my token and set repo's secret multiple times, yet the error remains.

dyzdyz010 avatar Apr 07 '24 14:04 dyzdyz010

Solved, just add environment to .yml file, because secrets are defined in envionments.

dyzdyz010 avatar Apr 08 '24 06:04 dyzdyz010

I have solved, you need insure the token in .yml file.

MengFanjun020906 avatar Apr 08 '24 07:04 MengFanjun020906