waka-readme-stats: Got an error when running actions

waka.yml

name: Waka Readme

on:
  push:
    branches: 
      - main
  schedule:
    - cron: "0 */12 * * *"

jobs:
  update-readme:
    name: Waka Update
    runs-on: ubuntu-latest
    steps:
      - uses: anmol098/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
          UPDATED_DATE_FORMAT: "%Y-%m-%d %H:%M:%S"
          SHOW_LINES_OF_CODE: "True"
          SHOW_DAYS_OF_WEEK: "False"
          SHOW_OS: "False"
#           SHOW_COMMIT: "True"
#           SHOW_DAYS_OF_WEEK: "True"
#           SHOW_EDITORS: "True"
#           SHOW_OS: "True"
          SHOW_PROJECTS: "False"
          SHOW_SHORT_INFO: "False"
          SHOW_LOC_CHART: "False"

Github Action Output:

Run anmol098/waka-readme-stats@master
/usr/bin/docker run --name wakareadmestatswakareadmestatsmaster_bd22b2 --label 49859c --workdir /github/workspace --rm -e "INPUT_WAKATIME_API_KEY" -e "INPUT_GH_TOKEN" -e "INPUT_UPDATED_DATE_FORMAT" -e "INPUT_SHOW_LINES_OF_CODE" -e "INPUT_SHOW_DAYS_OF_WEEK" -e "INPUT_SHOW_OS" -e "INPUT_SHOW_PROJECTS" -e "INPUT_SHOW_SHORT_INFO" -e "INPUT_SHOW_LOC_CHART" -e "INPUT_SECTION_NAME" -e "INPUT_PUSH_BRANCH_NAME" -e "INPUT_SHOW_EDITORS" -e "INPUT_SHOW_TIMEZONE" -e "INPUT_SHOW_COMMIT" -e "INPUT_SHOW_LANGUAGE" -e "INPUT_SHOW_LANGUAGE_PER_REPO" -e "INPUT_SHOW_PROFILE_VIEWS" -e "INPUT_LOCALE" -e "INPUT_COMMIT_BY_ME" -e "INPUT_IGNORED_REPOS" -e "INPUT_COMMIT_MESSAGE" -e "INPUT_COMMIT_USERNAME" -e "INPUT_COMMIT_EMAIL" -e "INPUT_SHOW_UPDATED_DATE" -e "INPUT_SHOW_TOTAL_CODE_TIME" -e "INPUT_SYMBOL_VERSION" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/mmm25002500/mmm25002500":"/github/workspace" wakareadmestats/waka-readme-stats:master
Current user: mmm25002500
0/43 Retrieving repo: mmm25002500 shanling-info
1/43 Retrieving repo: mmm25002500 LuATKDos
2/43 Retrieving repo: mmm25002500 Heavenly-branch
3/43 Retrieving repo: mmm25002500 MantrixTools
4/43 Retrieving repo: mmm25002500 foodpanda-spider
5/43 Retrieving repo: mmm25002500 ID_check
6/43 Retrieving repo: mmm25002500 PTT_Spider
7/43 Retrieving repo: mmm25002500 LearningJava
8/43 Retrieving repo: mmm25002500 Calculator
9/43 Retrieving repo: mmm25002500 bmiCount
10/43 Retrieving repo: mmm25002500 LearningTools
11/43 Retrieving repo: mmm25002500 rule34-crawler
12/43 Retrieving repo: mmm25002500 mmm25002500
13/43 Retrieving repo: mmm25002500 Test
14/43 Retrieving repo: mmm25002500 GuessNumber-Android
15/43 Retrieving repo: mmm25002500 unit-converter-app
16/43 Retrieving repo: mmm25002500 slot-machine-android
17/43 Retrieving repo: mmm25002500 EnglishVocabularyAPP
18/43 Retrieving repo: mmm25002500 webGoogle
19/43 Retrieving repo: mmm25002500 kesan
20/43 Retrieving repo: mmm25002500 GoogleDinoApp
21/43 Retrieving repo: Cutespirit-Team TershiBot-Telegram
22/43 Retrieving repo: mmm25002500 CryptoTab-Hider
23/43 Retrieving repo: mmm25002500 Arduino-Scoreboard
24/43 Retrieving repo: mmm25002500 frontier-cheat-language
25/43 Retrieving repo: Cutespirit-Team taiwan-stock
[26](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:27)/43 Retrieving repo: mmm25002500 tershi-things
[27](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:28)/43 Retrieving repo: mmm25002500 TradingView-Indicator
[28](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:29)/43 Retrieving repo: mmm25002500 Pull-Request-Pratice
[29](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:30)/43 Retrieving repo: mmm25002500 Nutc-class-timetable
[30](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:31)/43 Retrieving repo: mmm25002500 mmm25002500.github.io
[31](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:32)/43 Retrieving repo: mmm25002500 learning-note
[32](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:33)/43 Retrieving repo: yywbadm qian-yue-none
[33](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:34)/43 Retrieving repo: mmm25002500 MyWebsite
[34](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:35)/43 Retrieving repo: mmm25002500 blog
[35](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:36)/43 Retrieving repo: fishdoge SharkWeb
Traceback (most recent call last):
  File "/waka-readme-stats/main.py", line 457, in <module>
    run(main())
  File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/waka-readme-stats/main.py", line 429, in main
    waka_stats = await get_stats(g)
  File "/waka-readme-stats/main.py", line 359, in get_stats
    await get_yearly_data()
  File "/waka-readme-stats/main.py", line 300, in get_yearly_data
    yearly_data = await loc.calculateLoc()
  File "/waka-readme-stats/loc.py", line 26, in calculateLoc
    await self.getCommitStat(repo['node'], yearly_data)
  File "/waka-readme-stats/loc.py", line 46, in getCommitStat
    commit_data = await DownloadManager.get_remote_graphql("repository_commit_list", owner=repoDetails["owner"]["login"], name=repoDetails['name'], id=self.user.node_id)
  File "/waka-readme-stats/download_manager.py", line 202, in get_remote_graphql
    raise Exception(f"Query '{query}' failed to run by returning code of {res.status_code}: {res.json()}")
Exception: Query 'repository_commit_list' failed to run by returning code of 502: {'data': None, 'errors': [{'message': 'Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `7808:3C[36](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:37):22F862D:[48](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:49)E03B3:[63](https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167#step:3:64)F212F0` when reporting this issue.'}]}
sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited

repo: https://github.com/mmm25002500/mmm25002500/actions/runs/4216159656/jobs/7317801167

how can i fix it bro?

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 28

Most upvoted comments

Greeat! The last error you encounter will hopefully be resolved by #394 (as soon as it will be merged).

This should be fixed by #375.