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

Read Time Out in Waiting for checks #185

Open
jbcpollak opened this issue May 19, 2023 · 1 comment
Open

Read Time Out in Waiting for checks #185

jbcpollak opened this issue May 19, 2023 · 1 comment

Comments

@jbcpollak
Copy link
Contributor

We are getting this error when trying to push:

Waiting for status checks to finish for 'push-action/5028480720/26851-6198-25830' ...
ReadTimeout: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
Waiting for status checks to finish for 'push-action/5028480720/26851-6198-25830' ... DONE!

which seems to come from this line:

https://github.com/CasperWA/push-protected/blob/051766a6a39c6776802d9285f7bbfcddac9d8b3c/entrypoint.sh#LL52C14-L52C20

There doesn't seem to be any error handling in the shell script (or maybe it should be in push-action?), is there any way to debug this?

@CasperWA
Copy link
Owner

CasperWA commented Aug 22, 2023

I set 10 seconds as the default timeout time when waiting for a GH REST API request (see this line). This should be more than enough time. If this is not the case for you, check first that the GH services are not down (https://githubstatus.com) and then try to perform (and possibly time) any REST API call to the GH REST API:

To debug, I suggest to try and perform any REST API call using the credentials you would be using in the given job (if using GITHUB_TOKEN, then a personal access token with minimal access should do fine, but one that mirrors access granted a GITHUB_TOKEN would be better.

Here's some documentation on how to authenticate for calls to the REST API: https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28

Here's some documentation on the permissions for the GITHUB_TOKEN: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token

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

2 participants