anmol098 / waka-readme-stats

This GitHub action helps to add cool dev metrics to your github profile Readme
MIT License
3.36k stars 550 forks source link

Got an error when running actions #378

Closed mmm25002500 closed 1 year ago

mmm25002500 commented 1 year ago

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?

pseusys commented 1 year ago

This should be fixed by #375.

mmm25002500 commented 1 year ago

This should be fixed by #375.

so how can i fix it? just wait the pull request be merged?

h4rldev commented 1 year ago

I still have this issue

Edit: Issue self resolved

pseusys commented 1 year ago

@h4rldev The error that you encountered appears to be unrelated to the action.
As you can see here it was returned by wakatime API, that was still calculating your user stats and was unable to share them at the time of the run.
... and could you please specify the error message you received the next time?

mmm25002500 commented 1 year ago

two days ago, i rerun the github action. it was ok. but i run the action tody, then i got the same error like below:

/usr/bin/docker run --name wakareadmestatswakareadmestatsmaster_b7d965 --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_SHOW_UPDATED_DATE" -e "INPUT_SHOW_TOTAL_CODE_TIME" -e "INPUT_COMMIT_BY_ME" -e "INPUT_COMMIT_MESSAGE" -e "INPUT_COMMIT_USERNAME" -e "INPUT_COMMIT_EMAIL" -e "INPUT_LOCALE" -e "INPUT_IGNORED_REPOS" -e "INPUT_SYMBOL_VERSION" -e "INPUT_DEBUG_LOGGING" -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
Traceback (most recent call last):
  File "/waka-readme-stats/main.py", line 197, 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 188, in main
    if GHM.update_readme(await get_stats()):
  File "/waka-readme-stats/main.py", line 134, in get_stats
    yearly_data = await calculate_yearly_commit_data(repositories)
  File "/waka-readme-stats/yearly_commit_calculator.py", line [26](https://github.com/mmm25002500/mmm25002500/actions/runs/4277787462/jobs/7446901242#step:3:27), in calculate_yearly_commit_data
    await update_yearly_data_with_commit_stats(repo, yearly_data)
  File "/waka-readme-stats/yearly_commit_calculator.py", line 46, in update_yearly_data_with_commit_stats
    commit_data = await DM.get_remote_graphql("repo_commit_list", owner=owner, name=repo_details["name"], branch=branch["name"], id=GHM.USER.node_id)
  File "/waka-readme-stats/manager_download.py", line 299, in get_remote_graphql
    res = await DownloadManager._fetch_graphql_paginated(query, **kwargs)
  File "/waka-readme-stats/manager_download.py", line [27](https://github.com/mmm25002500/mmm25002500/actions/runs/4277787462/jobs/7446901242#step:3:28)4, in _fetch_graphql_paginated
    initial_query_response = await DownloadManager._fetch_graphql_query(query, **kwargs, pagination="first: 100")
  File "/waka-readme-stats/manager_download.py", line 2[39](https://github.com/mmm25002500/mmm25002500/actions/runs/4277787462/jobs/7446901242#step:3:40), in _fetch_graphql_query
    raise Exception(f"Query '{query}' failed to run by returning code of {res.status_code}: {res.json()}")
Exception: Query 'repo_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 `3F80:45FF:48[40](https://github.com/mmm25002500/mmm25002500/actions/runs/4277787462/jobs/7446901242#step:3:41)73D:94B2205:63FBFD96` when reporting this issue.'}]}
sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited
image
pseusys commented 1 year ago

Can you figure it out, fetching of which repository fails?

mmm25002500 commented 1 year ago

Can you figure it out, fetching of which repository fails?

Sorry, i didnt find which repo cause action failed. the github action output didnt show the error.

the repo link: mmm25002500/mmm25002500

there are not "repos" in the errors of top 3 jobs

pseusys commented 1 year ago

Could you re-run it with debug logging enabled in that case?

mmm25002500 commented 1 year ago

Could you re-run it with debug logging enabled in that case?

image

link: https://github.com/mmm25002500/mmm25002500/actions/runs/4283943930/jobs/7460209500

i rerun it but got the same error

pseusys commented 1 year ago

Could you re-run it with debug logging enabled in that case?

image

link: https://github.com/mmm25002500/mmm25002500/actions/runs/4283943930/jobs/7460209500

i rerun it but got the same error

No no, I really meant the "debug logging enabled". That's a checkbox near the rerun button. It adds additional debug info to the output....

mmm25002500 commented 1 year ago
##[debug]Evaluating condition for step: 'Run anmol098/waka-readme-stats@master'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run anmol098/waka-readme-stats@master
##[debug]Loading inputs
##[debug]Evaluating: secrets.WAKATIME_API_KEY
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'WAKATIME_API_KEY'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.GH_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GH_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: runner.debug
##[debug]Evaluating Index:
##[debug]..Evaluating runner:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'debug'
##[debug]=> '1'
##[debug]Result: '1'
##[debug]Loading env
Run anmol098/waka-readme-stats@master
/usr/bin/docker run --name wakareadmestatswakareadmestatsmaster_[2](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:2)0041b --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_SHOW_UPDATED_DATE" -e "INPUT_SHOW_TOTAL_CODE_TIME" -e "INPUT_COMMIT_BY_ME" -e "INPUT_COMMIT_MESSAGE" -e "INPUT_COMMIT_USERNAME" -e "INPUT_COMMIT_EMAIL" -e "INPUT_LOCALE" -e "INPUT_IGNORED_REPOS" -e "INPUT_SYMBOL_VERSION" -e "INPUT_DEBUG_LOGGING" -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_DEBUG" -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
Program execution started at 27-02-202[3](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:3) 16:33:53:159708.
Current user: mmm25002500
Managers initialized.
Collecting stats for README...
Calculating yearly commit data...
    1/[4](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:4)3 Retrieving repo: mmm2[5](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:5)002500/linktree
    2/43 Retrieving repo: mmm25002500/tsx-calc
    3/43 Retrieving repo: fishdoge/ton
    4/43 Retrieving repo: mmm25002500/notes
    5/43 Retrieving repo: mmm25002500/my-shop
    [6](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:6)/43 Retrieving repo: mmm25002500/yt-ktv-sys
    [7](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:7)/43 Retrieving repo: mmm25002500/resume
    [8](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:8)/43 Retrieving repo: fishdoge/SharkWeb
Traceback (most recent call last):
  File "/waka-readme-stats/main.py", line 1[9](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:9)7, 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 188, in main
    if GHM.update_readme(await get_stats()):
  File "/waka-readme-stats/main.py", line 134, in get_stats
    yearly_data = await calculate_yearly_commit_data(repositories)
  File "/waka-readme-stats/yearly_commit_calculator.py", line 26, in calculate_yearly_commit_data
    await update_yearly_data_with_commit_stats(repo, yearly_data)
  File "/waka-readme-stats/yearly_commit_calculator.py", line 46, in update_yearly_data_with_commit_stats
    commit_data = await DM.get_remote_graphql("repo_commit_list", owner=owner, name=repo_details["name"], branch=branch["name"], id=GHM.USER.node_id)
  File "/waka-readme-stats/manager_download.py", line 299, in get_remote_graphql
    res = await DownloadManager._fetch_graphql_paginated(query, **kwargs)
  File "/waka-readme-stats/manager_download.py", line 274, in _fetch_graphql_paginated
    initial_query_response = await DownloadManager._fetch_graphql_query(query, **kwargs, pagination="first: [10](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:10)0")
  File "/waka-readme-stats/manager_download.py", line 239, in _fetch_graphql_query
    raise Exception(f"Query '{query}' failed to run by returning code of {res.status_code}: {res.json()}")
Exception: Query 'repo_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 `8401:25DE:43A2[14](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:14)C:45[62](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:63)CBD:[63](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:64)FCDB[82](https://github.com/mmm25002500/mmm25002500/actions/runs/4282265614/jobs/7461819547#step:3:83)` when reporting this issue.'}]}
sys:1: RuntimeWarning: coroutine 'AsyncClient.get' was never awaited
##[debug]Docker Action run completed with exit code 1
##[debug]Finishing: Run anmol098/waka-readme-stats@master

ohhh! haha~ i found it bro! >.< seem like the same repo fishdoge/SharkWeb

pseusys commented 1 year ago

@mmm25002500 actually I wasn't able to reproduce your error.
I tried to run the branch query for that repository, and got the following branches list: ["timer", "main", "gltest", "gh_pages", "bug"].
I executed the commit query for every branch and it was successfull.

If you would like to prove me you can do it online, there're the substitution rules:

Would you mind cloning the repo and try running it locally with your credentials and configuration?
If it doesn't help I'd suggest writing to GitHub support.

pseusys commented 1 year ago

It also looks the same as #376. We have to figure out what's causing the error and fix it.

pseusys commented 1 year ago

It's also connected with #321.

mmm25002500 commented 1 year ago

@mmm25002500 actually I wasn't able to reproduce your error. I tried to run the branch query for that repository, and got the following branches list: ["timer", "main", "gltest", "gh_pages", "bug"]. I executed the commit query for every branch and it was successfull.

If you would like to prove me you can do it online, there're the substitution rules:

  • $owner will be substituted with fishdoge.
  • $name will be substituted with SharkWeb.
  • $pagination will be substituted with first: 100.
  • $branch will be substituted with current branch name.
  • $id will be substituted with your user id (it is MDQ6VXNlcjM5MDUxMjYx).

Would you mind cloning the repo and try running it locally with your credentials and configuration? If it doesn't help I'd suggest writing to GitHub support.

image So bro, I found the error like that! I tried the five branches: ["timer", "main", "gltest", "gh_pages", "bug"] got so many errors.

What should i do next? thx

mmm25002500 commented 1 year ago

image Update! I tried many times. Sometimes I rerun graphql and it showed me json. But sometimes i rerun it again and it showed me error.

does it just temporarily broken?

pseusys commented 1 year ago

@mmm25002500 hmmmm I wonder why is it happening.
Apparently, if you receive the correct response sometimes it's not an issue of the GraphQL query. Maybe it's just getting broken sometimes and we should setup a decent number of retries? Like... 10 maybe?
How many times did it take you to receive the correct result on average?
I'll make a PR as soon as I return home.

mmm25002500 commented 1 year ago
╭─tershi@tsx-mac.local ~/Downloads/Project/waka-readme-stats  ‹master› 
╰─➤  make run-container                                                                                                   2 ↵
docker build -t waka-readme-stats -f Dockerfile .
[+] Building 439.0s (8/9)                                                                                                     
 => [internal] load build definition from Dockerfile                                                                     0.0s
 => => transferring dockerfile: 432B                                                                                     0.0s
 => [internal] load .dockerignore                                                                                        0.0s
 => => transferring context: 2B                                                                                          0.0s
 => [internal] load metadata for docker.io/library/python:3.9-alpine                                                     3.5s
 => [internal] load build context                                                                                        0.0s
 => => transferring context: 78.76kB                                                                                     0.0s
 => [1/5] FROM docker.io/library/python:3.9-alpine@sha256:a02fee195c815e1a1038513af6be324a4e401667bb10eb1dfdbbeda2d7807  3.0s
 => => resolve docker.io/library/python:3.9-alpine@sha256:a02fee195c815e1a1038513af6be324a4e401667bb10eb1dfdbbeda2d7807  0.0s
 => => sha256:bcae47abf4b57779b5ab0771fd1a7768a667be1c0d37a1d6a1967cb14b63c91f 11.54MB / 11.54MB                         2.3s
 => => sha256:a02fee195c815e1a1038513af6be324a4e401667bb10eb1dfdbbeda2d780748c 1.65kB / 1.65kB                           0.0s
 => => sha256:e1f27cb750564f7e713d6483f11cfef6dbd4c9bb1142d9030457adab87140b6b 1.37kB / 1.37kB                           0.0s
 => => sha256:a236c715ca8a0c920fd54c20d3ed5e1bed8cab560ea3fd590c4e3fb0c0680829 7.33kB / 7.33kB                           0.0s
 => => sha256:af6eaf76a39c2d3e7e0b8a0420486e3df33c4027d696c076a99a3d0ac09026af 3.26MB / 3.26MB                           1.1s
 => => sha256:cdba2f6867522ee9d2e8dcc9b1ad3ec5bafe75da976a3e613ff26cbc98738b48 624.86kB / 624.86kB                       2.1s
 => => extracting sha256:af6eaf76a39c2d3e7e0b8a0420486e3df33c4027d696c076a99a3d0ac09026af                                0.1s
 => => sha256:b279af43ee8b4beba1e30b95c4890396463eb4606004b6b670222e17af8b582f 230B / 230B                               1.6s
 => => sha256:512e88ffaaf18f89120107ee9f184aed79dfdeea7ffe0c5e183464fa4db16189 2.88MB / 2.88MB                           2.9s
 => => extracting sha256:cdba2f6867522ee9d2e8dcc9b1ad3ec5bafe75da976a3e613ff26cbc98738b48                                0.1s
 => => extracting sha256:bcae47abf4b57779b5ab0771fd1a7768a667be1c0d37a1d6a1967cb14b63c91f                                0.2s
 => => extracting sha256:b279af43ee8b4beba1e30b95c4890396463eb4606004b6b670222e17af8b582f                                0.0s
 => => extracting sha256:512e88ffaaf18f89120107ee9f184aed79dfdeea7ffe0c5e183464fa4db16189                                0.1s
 => [2/5] RUN mkdir -p /waka-readme-stats/assets                                                                         0.2s
 => [3/5] ADD requirements.txt /waka-readme-stats/requirements.txt                                                       0.0s
 => ERROR [4/5] RUN apk add --no-cache g++ jpeg-dev zlib-dev libjpeg make && pip3 install -r /waka-readme-stats/requi  432.3s
------
 > [4/5] RUN apk add --no-cache g++ jpeg-dev zlib-dev libjpeg make && pip3 install -r /waka-readme-stats/requirements.txt:
#8 0.292 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz
#8 1.298 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz
#8 1.961 (1/21) Installing libgcc (12.2.1_git20220924-r4)
#8 2.066 (2/21) Installing libstdc++ (12.2.1_git20220924-r4)
#8 2.356 (3/21) Installing libstdc++-dev (12.2.1_git20220924-r4)
#8 4.797 (4/21) Installing binutils (2.39-r2)
#8 5.256 (5/21) Installing libgomp (12.2.1_git20220924-r4)
#8 5.387 (6/21) Installing libatomic (12.2.1_git20220924-r4)
#8 5.477 (7/21) Installing gmp (6.2.1-r2)
#8 5.624 (8/21) Installing isl25 (0.25-r0)
#8 5.842 (9/21) Installing mpfr4 (4.1.0-r0)
#8 5.963 (10/21) Installing mpc1 (1.2.1-r1)
#8 6.073 (11/21) Installing gcc (12.2.1_git20220924-r4)
#8 9.253 (12/21) Installing musl-dev (1.2.3-r4)
#8 9.749 (13/21) Installing libc-dev (0.7.2-r3)
#8 9.858 (14/21) Installing g++ (12.2.1_git20220924-r4)
#8 11.26 (15/21) Installing libjpeg-turbo (2.1.4-r0)
#8 11.38 (16/21) Installing pkgconf (1.9.4-r0)
#8 11.49 (17/21) Installing libjpeg-turbo-dev (2.1.4-r0)
#8 11.59 (18/21) Installing jpeg-dev (9e-r0)
#8 11.68 (19/21) Installing libjpeg (9e-r0)
#8 11.94 (20/21) Installing make (4.3-r1)
#8 12.05 (21/21) Installing zlib-dev (1.2.13-r0)
#8 12.15 Executing busybox-1.35.0-r29.trigger
#8 12.16 OK: 243 MiB in 58 packages
#8 13.70 Collecting PyGithub~=1.57
#8 14.14   Downloading PyGithub-1.58.0-py3-none-any.whl (312 kB)
#8 14.45      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 312.4/312.4 KB 1.0 MB/s eta 0:00:00
#8 14.72 Collecting pytz~=2022.7
#8 14.81   Downloading pytz-2022.7.1-py2.py3-none-any.whl (499 kB)
#8 15.16      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 499.4/499.4 KB 1.4 MB/s eta 0:00:00
#8 15.30 Collecting humanize~=4.6
#8 15.40   Downloading humanize-4.6.0-py3-none-any.whl (109 kB)
#8 15.45      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.0/110.0 KB 1.9 MB/s eta 0:00:00
#8 15.76 Collecting matplotlib~=3.7
#8 15.86   Downloading matplotlib-3.7.0.tar.gz (36.3 MB)
#8 22.19      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.3/36.3 MB 8.6 MB/s eta 0:00:00
#8 23.48   Installing build dependencies: started
#8 112.4   Installing build dependencies: still running...
#8 164.2   Installing build dependencies: finished with status 'done'
#8 164.2   Getting requirements to build wheel: started
#8 164.7   Getting requirements to build wheel: finished with status 'done'
#8 164.8   Installing backend dependencies: started
#8 167.5   Installing backend dependencies: finished with status 'done'
#8 167.5   Preparing metadata (pyproject.toml): started
#8 168.0   Preparing metadata (pyproject.toml): finished with status 'done'
#8 168.2 Collecting numpy~=1.24
#8 168.3   Downloading numpy-1.24.2.tar.gz (10.9 MB)
#8 169.3      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 11.1 MB/s eta 0:00:00
#8 170.0   Installing build dependencies: started
#8 174.4   Installing build dependencies: finished with status 'done'
#8 174.4   Getting requirements to build wheel: started
#8 175.1   Getting requirements to build wheel: finished with status 'done'
#8 175.1   Preparing metadata (pyproject.toml): started
#8 175.7   Preparing metadata (pyproject.toml): finished with status 'done'
#8 175.9 Collecting httpx~=0.23
#8 176.0   Downloading httpx-0.23.3-py3-none-any.whl (71 kB)
#8 176.1      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.5/71.5 KB 802.3 kB/s eta 0:00:00
#8 176.2 Collecting PyYAML~=6.0
#8 176.3   Downloading PyYAML-6.0.tar.gz (124 kB)
#8 176.4      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 KB 2.6 MB/s eta 0:00:00
#8 176.5   Installing build dependencies: started
#8 179.9   Installing build dependencies: finished with status 'done'
#8 179.9   Getting requirements to build wheel: started
#8 181.0   Getting requirements to build wheel: finished with status 'done'
#8 181.0   Preparing metadata (pyproject.toml): started
#8 181.4   Preparing metadata (pyproject.toml): finished with status 'done'
#8 181.5 Collecting flake8~=6.0
#8 181.6   Downloading flake8-6.0.0-py2.py3-none-any.whl (57 kB)
#8 181.7      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.8/57.8 KB 1.7 MB/s eta 0:00:00
#8 181.8 Collecting black~=23.1
#8 181.9   Downloading black-23.1.0-py3-none-any.whl (174 kB)
#8 182.0      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.1/174.1 KB 2.5 MB/s eta 0:00:00
#8 182.1 Collecting deprecated
#8 182.2   Downloading Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
#8 182.3 Collecting pyjwt>=2.4.0
#8 182.4   Downloading PyJWT-2.6.0-py3-none-any.whl (20 kB)
#8 182.6 Collecting requests>=2.14.0
#8 182.7   Downloading requests-2.28.2-py3-none-any.whl (62 kB)
#8 182.7      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 KB 2.8 MB/s eta 0:00:00
#8 182.8 Collecting pynacl>=1.4.0
#8 183.0   Downloading PyNaCl-1.5.0-cp36-abi3-musllinux_1_1_aarch64.whl (663 kB)
#8 183.2      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.8/663.8 KB 2.7 MB/s eta 0:00:00
#8 183.4 Collecting importlib-resources>=3.2.0
#8 183.5   Downloading importlib_resources-5.12.0-py3-none-any.whl (36 kB)
#8 183.6 Collecting cycler>=0.10
#8 183.7   Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
#8 183.9 Collecting contourpy>=1.0.1
#8 184.0   Downloading contourpy-1.0.7-cp39-cp39-musllinux_1_1_aarch64.whl (783 kB)
#8 184.1      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 783.2/783.2 KB 7.9 MB/s eta 0:00:00
#8 184.2 Collecting pyparsing>=2.3.1
#8 184.3   Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
#8 184.3      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 KB 6.1 MB/s eta 0:00:00
#8 184.5 Collecting python-dateutil>=2.7
#8 184.5   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
#8 184.6      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 KB 7.4 MB/s eta 0:00:00
#8 184.9 Collecting pillow>=6.2.0
#8 185.0   Downloading Pillow-9.4.0-cp39-cp39-musllinux_1_1_aarch64.whl (3.3 MB)
#8 185.6      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 5.5 MB/s eta 0:00:00
#8 185.7 Collecting kiwisolver>=1.0.1
#8 185.8   Downloading kiwisolver-1.4.4.tar.gz (97 kB)
#8 185.8      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.1/97.1 KB 6.7 MB/s eta 0:00:00
#8 185.9   Installing build dependencies: started
#8 189.7   Installing build dependencies: finished with status 'done'
#8 189.7   Getting requirements to build wheel: started
#8 190.2   Getting requirements to build wheel: finished with status 'done'
#8 190.2   Preparing metadata (pyproject.toml): started
#8 190.8   Preparing metadata (pyproject.toml): finished with status 'done'
#8 190.9 Collecting packaging>=20.0
#8 190.9   Using cached packaging-23.0-py3-none-any.whl (42 kB)
#8 191.0 Collecting fonttools>=4.22.0
#8 191.1   Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)
#8 191.2      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 965.4/965.4 KB 10.7 MB/s eta 0:00:00
#8 191.3 Collecting sniffio
#8 191.4   Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
#8 191.5 Collecting rfc3986[idna2008]<2,>=1.3
#8 191.6   Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
#8 191.8 Collecting httpcore<0.17.0,>=0.15.0
#8 191.9   Downloading httpcore-0.16.3-py3-none-any.whl (69 kB)
#8 191.9      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.6/69.6 KB 6.5 MB/s eta 0:00:00
#8 192.0 Collecting certifi
#8 192.0   Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
#8 192.1 Collecting pyflakes<3.1.0,>=3.0.0
#8 192.2   Downloading pyflakes-3.0.1-py2.py3-none-any.whl (62 kB)
#8 192.3      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 KB 11.2 MB/s eta 0:00:00
#8 192.4 Collecting pycodestyle<2.11.0,>=2.10.0
#8 192.5   Downloading pycodestyle-2.10.0-py2.py3-none-any.whl (41 kB)
#8 192.5      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.3/41.3 KB 2.8 MB/s eta 0:00:00
#8 192.6 Collecting mccabe<0.8.0,>=0.7.0
#8 192.7   Downloading mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB)
#8 192.8 Collecting typing-extensions>=3.10.0.0
#8 192.8   Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
#8 192.9 Collecting platformdirs>=2
#8 193.0   Downloading platformdirs-3.0.0-py3-none-any.whl (14 kB)
#8 193.1 Collecting pathspec>=0.9.0
#8 193.2   Downloading pathspec-0.11.0-py3-none-any.whl (29 kB)
#8 193.3 Collecting mypy-extensions>=0.4.3
#8 193.4   Downloading mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
#8 193.6 Collecting click>=8.0.0
#8 193.7   Downloading click-8.1.3-py3-none-any.whl (96 kB)
#8 193.7      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 KB 3.0 MB/s eta 0:00:00
#8 193.8 Collecting tomli>=1.1.0
#8 193.8   Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
#8 194.0 Collecting h11<0.15,>=0.13
#8 194.1   Downloading h11-0.14.0-py3-none-any.whl (58 kB)
#8 194.1      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 KB 1.9 MB/s eta 0:00:00
#8 194.3 Collecting anyio<5.0,>=3.0
#8 194.4   Downloading anyio-3.6.2-py3-none-any.whl (80 kB)
#8 194.4      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 KB 2.4 MB/s eta 0:00:00
#8 194.6 Collecting zipp>=3.1.0
#8 194.7   Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
#8 194.9 Collecting cffi>=1.4.1
#8 195.0   Downloading cffi-1.15.1.tar.gz (508 kB)
#8 195.2      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 508.5/508.5 KB 2.6 MB/s eta 0:00:00
#8 195.3   Preparing metadata (setup.py): started
#8 195.8   Preparing metadata (setup.py): finished with status 'done'
#8 195.9 Collecting six>=1.5
#8 196.0   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
#8 196.2 Collecting urllib3<1.27,>=1.21.1
#8 196.3   Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
#8 196.3      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 KB 4.7 MB/s eta 0:00:00
#8 196.5 Collecting charset-normalizer<4,>=2
#8 196.6   Downloading charset_normalizer-3.0.1-cp39-cp39-musllinux_1_1_aarch64.whl (192 kB)
#8 196.6      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 192.2/192.2 KB 3.1 MB/s eta 0:00:00
#8 196.8 Collecting idna<4,>=2.5
#8 196.8   Downloading idna-3.4-py3-none-any.whl (61 kB)
#8 196.9      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 4.2 MB/s eta 0:00:00
#8 197.1 Collecting wrapt<2,>=1.10
#8 197.2   Downloading wrapt-1.15.0-cp39-cp39-musllinux_1_1_aarch64.whl (82 kB)
#8 197.2      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.7/82.7 KB 1.7 MB/s eta 0:00:00
#8 197.3 Collecting pycparser
#8 197.4   Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
#8 197.4      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 KB 11.5 MB/s eta 0:00:00
#8 197.5 Building wheels for collected packages: matplotlib, numpy, PyYAML, kiwisolver, cffi
#8 197.5   Building wheel for matplotlib (pyproject.toml): started
#8 265.5   Building wheel for matplotlib (pyproject.toml): still running...
#8 277.7   Building wheel for matplotlib (pyproject.toml): finished with status 'done'
#8 277.8   Created wheel for matplotlib: filename=matplotlib-3.7.0-cp39-cp39-linux_aarch64.whl size=11133370 sha256=8ed1287f876f0db14f9e359f2f0b9f50ac2c51a91a3396fdfcc5d323fbdd9879
#8 277.8   Stored in directory: /root/.cache/pip/wheels/87/3e/12/8f0522c288f4808178140c58e46b8146fe1ea6a1c88b8bd6a4
#8 277.8   Building wheel for numpy (pyproject.toml): started
#8 338.0   Building wheel for numpy (pyproject.toml): still running...
#8 403.5   Building wheel for numpy (pyproject.toml): still running...
#8 414.3   Building wheel for numpy (pyproject.toml): finished with status 'done'
#8 414.3   Created wheel for numpy: filename=numpy-1.24.2-cp39-cp39-linux_aarch64.whl size=18835227 sha256=ecca1060c53bc5d71b712551bddfd59f751da2dc199dcbe5a52958494d5d26d7
#8 414.3   Stored in directory: /root/.cache/pip/wheels/a8/b1/8a/5bfe753f31eab127bc070373883a65dbe970e8db85118d2a1b
#8 414.4   Building wheel for PyYAML (pyproject.toml): started
#8 414.9   Building wheel for PyYAML (pyproject.toml): finished with status 'done'
#8 414.9   Created wheel for PyYAML: filename=PyYAML-6.0-cp39-cp39-linux_aarch64.whl size=45334 sha256=cc9a6392b775605848ce9ba45e1bfc45bd6aed2bce10cc3ebb09342aa68fcafe
#8 414.9   Stored in directory: /root/.cache/pip/wheels/b4/0f/9a/d6af48581dda678920fccfb734f5d9f827c6ed5b4074c7eda8
#8 414.9   Building wheel for kiwisolver (pyproject.toml): started
#8 426.6   Building wheel for kiwisolver (pyproject.toml): finished with status 'done'
#8 426.6   Created wheel for kiwisolver: filename=kiwisolver-1.4.4-cp39-cp39-linux_aarch64.whl size=1321390 sha256=11b9067f8ce568ea70b3233c9990edaf213ea41d4dfa2aadc4827b0dde6dbd7d
#8 426.6   Stored in directory: /root/.cache/pip/wheels/36/d5/c8/6c6b00c79ce65e1094d47e6bbdd84e61a427abe55ea49e5ae7
#8 426.6   Building wheel for cffi (setup.py): started
#8 427.2   Building wheel for cffi (setup.py): finished with status 'error'
#8 427.2   error: subprocess-exited-with-error
#8 427.2   
#8 427.2   × python setup.py bdist_wheel did not run successfully.
#8 427.2   │ exit code: 1
#8 427.2   ╰─> [58 lines of output]
#8 427.2       Package libffi was not found in the pkg-config search path.
#8 427.2       Perhaps you should add the directory containing `libffi.pc'
#8 427.2       to the PKG_CONFIG_PATH environment variable
#8 427.2       Package 'libffi', required by 'virtual:world', not found
#8 427.2       Package libffi was not found in the pkg-config search path.
#8 427.2       Perhaps you should add the directory containing `libffi.pc'
#8 427.2       to the PKG_CONFIG_PATH environment variable
#8 427.2       Package 'libffi', required by 'virtual:world', not found
#8 427.2       Package libffi was not found in the pkg-config search path.
#8 427.2       Perhaps you should add the directory containing `libffi.pc'
#8 427.2       to the PKG_CONFIG_PATH environment variable
#8 427.2       Package 'libffi', required by 'virtual:world', not found
#8 427.2       Package libffi was not found in the pkg-config search path.
#8 427.2       Perhaps you should add the directory containing `libffi.pc'
#8 427.2       to the PKG_CONFIG_PATH environment variable
#8 427.2       Package 'libffi', required by 'virtual:world', not found
#8 427.2       Package libffi was not found in the pkg-config search path.
#8 427.2       Perhaps you should add the directory containing `libffi.pc'
#8 427.2       to the PKG_CONFIG_PATH environment variable
#8 427.2       Package 'libffi', required by 'virtual:world', not found
#8 427.2       running bdist_wheel
#8 427.2       running build
#8 427.2       running build_py
#8 427.2       creating build
#8 427.2       creating build/lib.linux-aarch64-3.9
#8 427.2       creating build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/cparser.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/model.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/verifier.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/api.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/error.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/recompiler.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/lock.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/__init__.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/commontypes.py -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/_embedding.h -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.9/cffi
#8 427.2       warning: build_py: byte-compiling is disabled, skipping.
#8 427.2       
#8 427.2       running build_ext
#8 427.2       building '_cffi_backend' extension
#8 427.2       creating build/temp.linux-aarch64-3.9
#8 427.2       creating build/temp.linux-aarch64-3.9/c
#8 427.2       gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.9/c/_cffi_backend.o
#8 427.2       c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#8 427.2          15 | #include <ffi.h>
#8 427.2             |          ^~~~~~~
#8 427.2       compilation terminated.
#8 427.2       error: command '/usr/bin/gcc' failed with exit code 1
#8 427.2       [end of output]
#8 427.2   
#8 427.2   note: This error originates from a subprocess, and is likely not a problem with pip.
#8 427.2   ERROR: Failed building wheel for cffi
#8 427.2   Running setup.py clean for cffi
#8 427.7 Successfully built matplotlib numpy PyYAML kiwisolver
#8 427.7 Failed to build cffi
#8 427.8 Installing collected packages: rfc3986, pytz, charset-normalizer, zipp, wrapt, urllib3, typing-extensions, tomli, sniffio, six, PyYAML, pyparsing, pyjwt, pyflakes, pycparser, pycodestyle, platformdirs, pillow, pathspec, packaging, numpy, mypy-extensions, mccabe, kiwisolver, idna, humanize, h11, fonttools, cycler, click, certifi, requests, python-dateutil, importlib-resources, flake8, deprecated, contourpy, cffi, black, anyio, pynacl, matplotlib, httpcore, PyGithub, httpx
#8 430.9   Running setup.py install for cffi: started
#8 431.5   Running setup.py install for cffi: finished with status 'error'
#8 431.5   error: subprocess-exited-with-error
#8 431.5   
#8 431.5   × Running setup.py install for cffi did not run successfully.
#8 431.5   │ exit code: 1
#8 431.5   ╰─> [58 lines of output]
#8 431.5       Package libffi was not found in the pkg-config search path.
#8 431.5       Perhaps you should add the directory containing `libffi.pc'
#8 431.5       to the PKG_CONFIG_PATH environment variable
#8 431.5       Package 'libffi', required by 'virtual:world', not found
#8 431.5       Package libffi was not found in the pkg-config search path.
#8 431.5       Perhaps you should add the directory containing `libffi.pc'
#8 431.5       to the PKG_CONFIG_PATH environment variable
#8 431.5       Package 'libffi', required by 'virtual:world', not found
#8 431.5       Package libffi was not found in the pkg-config search path.
#8 431.5       Perhaps you should add the directory containing `libffi.pc'
#8 431.5       to the PKG_CONFIG_PATH environment variable
#8 431.5       Package 'libffi', required by 'virtual:world', not found
#8 431.5       Package libffi was not found in the pkg-config search path.
#8 431.5       Perhaps you should add the directory containing `libffi.pc'
#8 431.5       to the PKG_CONFIG_PATH environment variable
#8 431.5       Package 'libffi', required by 'virtual:world', not found
#8 431.5       Package libffi was not found in the pkg-config search path.
#8 431.5       Perhaps you should add the directory containing `libffi.pc'
#8 431.5       to the PKG_CONFIG_PATH environment variable
#8 431.5       Package 'libffi', required by 'virtual:world', not found
#8 431.5       running install
#8 431.5       running build
#8 431.5       running build_py
#8 431.5       creating build
#8 431.5       creating build/lib.linux-aarch64-3.9
#8 431.5       creating build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/cparser.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/model.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/verifier.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/api.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/error.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/recompiler.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/lock.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/__init__.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/commontypes.py -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/_embedding.h -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.9/cffi
#8 431.5       warning: build_py: byte-compiling is disabled, skipping.
#8 431.5       
#8 431.5       running build_ext
#8 431.5       building '_cffi_backend' extension
#8 431.5       creating build/temp.linux-aarch64-3.9
#8 431.5       creating build/temp.linux-aarch64-3.9/c
#8 431.5       gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.9/c/_cffi_backend.o
#8 431.5       c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#8 431.5          15 | #include <ffi.h>
#8 431.5             |          ^~~~~~~
#8 431.5       compilation terminated.
#8 431.5       error: command '/usr/bin/gcc' failed with exit code 1
#8 431.5       [end of output]
#8 431.5   
#8 431.5   note: This error originates from a subprocess, and is likely not a problem with pip.
#8 431.5 error: legacy-install-failure
#8 431.5 
#8 431.5 × Encountered error while trying to install package.
#8 431.5 ╰─> cffi
#8 431.5 
#8 431.5 note: This is an issue with the package mentioned above, not pip.
#8 431.5 hint: See above for output from the failure.
#8 431.5 WARNING: You are using pip version 22.0.4; however, version 23.0.1 is available.
#8 431.5 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
executor failed running [/bin/sh -c apk add --no-cache g++ jpeg-dev zlib-dev libjpeg make && pip3 install -r /waka-readme-stats/requirements.txt]: exit code: 1
make: *** [run-container] Error 1
╭─tershi@tsx-mac.local ~/Downloads/Project/waka-readme-stats  ‹master› 
╰─➤                                

i cloned your repo and run the makefile then i got the error that is pip error! what is the problem?

mmm25002500 commented 1 year ago

Cloned Repo URL: git clone https://github.com/anmol098/waka-readme-stats

pseusys commented 1 year ago

@mmm25002500 That's not an issue for building on linux, I've just retried it from scratch. You can run the action locally using make run-locally ENV=conf.env (where conf.env is a file with your environmental variables).

In order to fix your issue I guess you will have to add libffi-dev installation to the Dockerfile, but I don't think it's worth doing so in this repo as long as it's fully functional on the main distribution and execution platform (linux).

mmm25002500 commented 1 year ago
image

So I dl archlinux in my macbook air m1 what variable should i put into conf.env?

image image

Got an error like that

pseusys commented 1 year ago

@mmm25002500 that's correct, the error happens because your environment variables are not setup. You can take a look at sample environmental variables in .env.example file in the project root - or in your own action workflow file.

We will definitely write a local deploying guide one day...

mmm25002500 commented 1 year ago

image so i set the waka api key and gh_token variable i rerun it then i got this error what is INPUT_SYMBOL_VERSION?

pseusys commented 1 year ago

You should really try copying all the other variabmes from .env.example. INPUT_SYMBOL_VERSION is an environmental variable setting text progressbar symbols style.

mmm25002500 commented 1 year ago

You should really try copying all the other variabmes from .env.example. INPUT_SYMBOL_VERSION is an environmental variable setting text progressbar symbols style.

image

i copied the other variables from conf.env to .env.example and run the cmd "make run-locally"

but an error occur when "retrieving fishdoge/SharkWeb" :(( it looks like the same error XD

pseusys commented 1 year ago

We're defibitely getting closer! Now, the pull request that I proposed wasn't merged yet. Did you switch to it's branch? The branch name is: fix/random_502_query_errors

mmm25002500 commented 1 year ago

ohh my fault sor! XD i forgot image image

looks like its ok :))

pseusys commented 1 year ago

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