Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG #496

Closed
MengFanjun020906 opened this issue Jan 6, 2024 · 8 comments
Closed

BUG #496

MengFanjun020906 opened this issue Jan 6, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@MengFanjun020906
Copy link

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 MengFanjun020906 added the bug Something isn't working label Jan 6, 2024
@MengFanjun020906
Copy link
Author

you can see this picture
image

@v1peridae
Copy link

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

@v1peridae
Copy link

Fixed for me!

@v1peridae
Copy link

I reset the secrets and it worked

@Prathamesh-B
Copy link
Contributor

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

@dyzdyz010
Copy link

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

@dyzdyz010
Copy link

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

@MengFanjun020906
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants