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

500 GitHub error #70

Open
astrochun opened this issue Mar 6, 2022 · 0 comments
Open

500 GitHub error #70

astrochun opened this issue Mar 6, 2022 · 0 comments
Assignees

Comments

@astrochun
Copy link
Owner

Recent execution failed due to a 500 error from GitHub API. Perhaps a solution is needed to handle this exception:

with:
    username: astrochun
    token: ***
  env:
    BOT_NAME: astrochun[bot]
    BOT_EMAIL: 20[3](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:3)0573[4](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:4)[email protected]
/usr/bin/docker run --name a9[5](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:5)ef27a23931418418588f8808adb1b231e_7dd4a7 --label 29a95e --workdir /github/workspace --rm -e BOT_NAME -e BOT_EMAIL -e INPUT_USERNAME -e INPUT_TOKEN -e INPUT_INCLUDE-REPOS -e INPUT_EXCLUDE-REPOS -e INPUT_TEST -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_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_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 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/test-github-stats/test-github-stats":"/github/workspace" 29a95e:f27a23931418418588f8808adb1b231e  "astrochun" "***" "" "" ""
Version: 0.4.5
Running get_repo_list script ...
get_repo_list - Retrieving repository list ...
construct_csv - Writing: astrochun.csv
> 2018-09-01-steward - Visitors
Date		Views	Unique visitors
Totals		0	0

> 2018-09-01-steward - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> 2018-09-01-steward - Referring sites
Date		Views	Unique visitors
Totals		0	0

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/requests-2.27.1-py3.9.egg/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/local/lib/python3.9/json/__init__.py", line 34[6](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:6), in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.9/json/decoder.py", line 33[7](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:7), in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/gts", line 33, in <module>
    sys.exit(load_entry_point('github-traffic-stats', 'console_scripts', 'gts')())
  File "/usr/local/lib/python3.9/site-packages/github_traffic_stats-1.2.0-py3.9.egg/gts/main.py", line 305, in main
    traffic_response = send_request('traffic', organization, auth_pair, repo).json()
  File "/usr/local/lib/python3.9/site-packages/requests-2.27.1-py3.9.egg/requests/models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] : 0
> astrochun - Visitors
Date		Views	Unique visitors
Totals		4	1
2022-02-26	4	1

> astrochun - Git clones
Date		Clones	Unique cloners
Totals		1	1
2022-03-04	1	1

> astrochun - Referring sites
Date		Views	Unique visitors
Totals		4	1
github.c...	4	1 

> astrochun.github.io - Visitors
Date		Views	Unique visitors
Totals		0	0

> astrochun.github.io - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> astrochun.github.io - Referring sites
Date		Views	Unique visitors
Totals		0	0

> chun_codes - Visitors
Date		Views	Unique visitors
Totals		1	1
2022-02-27	1	1

> chun_codes - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> chun_codes - Referring sites
Date		Views	Unique visitors
Totals		1	1
github.c...	1	1 

> closed-discussion-message - Visitors
Date		Views	Unique visitors
Totals		0	0

> closed-discussion-message - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> closed-discussion-message - Referring sites
Date		Views	Unique visitors
Totals		0	0

> containeraction - Visitors
Date		Views	Unique visitors
Totals		0	0

> containeraction - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> containeraction - Referring sites
Date		Views	Unique visitors
Totals		0	0

> DarkData_Inventory - Visitors
Date		Views	Unique visitors
Totals		0	0

> DarkData_Inventory - Git clones
Date		Clones	Unique cloners
Totals		1	1
2022-03-04	1	1

> DarkData_Inventory - Referring sites
Date		Views	Unique visitors
Totals		0	0

> DevOps_guide - Visitors
Date		Views	Unique visitors
Totals		0	0

> DevOps_guide - Git clones
Date		Clones	Unique cloners
Totals		1	1
2022-03-04	1	1

> DevOps_guide - Referring sites
Date		Views	Unique visitors
Totals		0	0

> Evolution-of-Galaxies - Visitors
Date		Views	Unique visitors
Totals		0	0

> Evolution-of-Galaxies - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> Evolution-of-Galaxies - Referring sites
Date		Views	Unique visitors
Totals		0	0

> Extract1D - Visitors
Date		Views	Unique visitors
Totals		0	0

> Extract1D - Git clones
Date		Clones	Unique cloners
Totals		2	2
2022-03-04	2	2

> Extract1D - Referring sites
Date		Views	Unique visitors
Totals		0	0

> figshare-actions-publish-test - Visitors
Date		Views	Unique visitors
Totals		0	0

> figshare-actions-publish-test - Git clones
Date		Clones	Unique cloners
Totals		1	1
2022-03-04	1	1

> figshare-actions-publish-test - Referring sites
Date		Views	Unique visitors
Totals		0	0

> figshare_actions - Visitors
Date		Views	Unique visitors
Totals		0	0

> figshare_actions - Git clones
Date		Clones	Unique cloners
Totals		1	1
2022-03-04	1	1

> figshare_actions - Referring sites
Date		Views	Unique visitors
Totals		0	0

Traceback (most recent call last):
  File "/usr/local/bin/gts_run_all_repos", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/scripts/gts_run_all_repos", line 51, in <module>
    gts_run.get_top_paths(args.user, args.token, repo_name,
  File "/github_stats_pages/gts_run.py", line 24, in get_top_paths
    top_path_list = repo.get_top_paths()
  File "/usr/local/lib/python3.9/site-packages/PyGithub-1.55-py3.9.egg/github/Repository.py", line 1965, in get_top_paths
    headers, data = self._requester.requestJsonAndCheck(
  File "/usr/local/lib/python3.9/site-packages/PyGithub-1.55-py3.9.egg/github/Requester.py", line 353, in requestJsonAndCheck
    return self.__check(
  File "/usr/local/lib/python3.9/site-packages/PyGithub-1.55-py3.9.egg/github/Requester.py", line 37[8](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:8), in __check
    raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 500 null
Running gts_run_all_repos script ...
gts_run_all_repos - Excluding forks: 3[9](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:9)
gts_run_all_repos - Excluding archived: 1
gts_run_all_repos : Number of repositories: 42
Working on : 20[18](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:18)-09-01-steward ...
Empty top paths for [20](https://github.com/astrochun/test-github-stats/runs/5436412962?check_suite_focus=true#step:6:20)18-09-01-steward
Working on : academic-ads-bibtex ...
Empty top paths for academic-ads-bibtex
Working on : astrochun ...
> astrochun - Top paths
| path                                     |   count |   uniques |
|:-----------------------------------------|--------:|----------:|
| /astrochun/astrochun                     |       2 |         1 |
| /astrochun/astrochun/blob/main/README.md |       2 |         1 |
Working on : astrochun.github.io ...
Empty top paths for astrochun.github.io
Working on : chun_codes ...
> chun_codes - Top paths
| path                  |   count |   uniques |
|:----------------------|--------:|----------:|
| /astrochun/chun_codes |       1 |         1 |
Working on : closed-discussion-message ...
Empty top paths for closed-discussion-message
Working on : containeraction ...
Empty top paths for containeraction
Working on : DarkData_Inventory ...
Empty top paths for DarkData_Inventory
Working on : DevOps_guide ...
Empty top paths for DevOps_guide
Working on : Evolution-of-Galaxies ...
Empty top paths for Evolution-of-Galaxies
Working on : Extract1D ...
Empty top paths for Extract1D
Working on : figshare-actions-publish-test ...
Empty top paths for figshare-actions-publish-test
Working on : figshare_actions ...
@astrochun astrochun self-assigned this Mar 6, 2022
@astrochun astrochun transferred this issue from astrochun/github-stats Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant