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

Prevent Occassional GitHub Actions Errors #39

Open
maltfield opened this issue Aug 19, 2023 · 1 comment
Open

Prevent Occassional GitHub Actions Errors #39

maltfield opened this issue Aug 19, 2023 · 1 comment

Comments

@maltfield
Copy link
Owner

A few times per day the hourly updates have been failing. Unfortunately I can't always see why because the log output gets truncated due to the lemmy-stats-crawler debug output.

I did manage to find one with a traceback

2023-08-19T06:34:24.0560176Z Traceback (most recent call last):
2023-08-19T06:34:24.0564873Z   File "/home/runner/work/awesome-lemmy-instances/awesome-lemmy-instances/./generate_readme.py", line 114, in <module>
2023-08-19T06:34:24.0565728Z     instances_with_blocked = [x for x in data['instance_details'] if x['federated_instances']['federated_instances']['blocked'] != [] ]
2023-08-19T06:34:24.0567287Z   File "/home/runner/work/awesome-lemmy-instances/awesome-lemmy-instances/./generate_readme.py", line 114, in <listcomp>
2023-08-19T06:34:24.0568374Z     instances_with_blocked = [x for x in data['instance_details'] if x['federated_instances']['federated_instances']['blocked'] != [] ]
2023-08-19T06:34:24.0569114Z KeyError: 'federated_instances'
2023-08-19T06:34:25.0501530Z ##[error]Process completed with exit code 1.
@maltfield
Copy link
Owner Author

My latest commit reduced the verbosity from 4 to 1 of lemmy-stats-crawler (which doesn't appear to be failing but causes the logs to truncate), so if it keeps failing then hopefully I'll be able to see why.

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