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

404 Error on hitting github dispatches API #103

Closed
kalebsembiring opened this issue Feb 17, 2022 · 3 comments
Closed

404 Error on hitting github dispatches API #103

kalebsembiring opened this issue Feb 17, 2022 · 3 comments

Comments

@kalebsembiring
Copy link

kalebsembiring commented Feb 17, 2022

occasionally can't hit the github dispatches API, here's the error logs :

Run 689b4c9
with:
token: ***
repository: tokopedia/ansible-v2
event-type: apply
client-payload: { "pr_number": "20897", "extra_vars": "", "tags": "", "limit": "", "comment_body": "ghtoped apply", "pr_url": "https://api.github.com/repos/tokopedia/ansible-v2/pulls/20897"}
env:
GCS_FILE: true
COMMENT_BODY: ghtoped apply
Error: request to https://api.github.com/repos/tokopedia/ansible-v2/dispatches failed, reason: getaddrinfo ENOTFOUND api.github.com

@kalebsembiring kalebsembiring changed the title 404 Error on hitting dispatches API https://api.github.com/repos/tokopedia/ansible-v2/dispatches 404 Error on hitting github dispatches API Feb 17, 2022
@peter-evans
Copy link
Owner

Hi @kalebsembiring

If it's just happening occasionally then it's likely to be a network problem between the runner and the API, or it could be intermittent API problems on GitHub's side.

Are you using self-hosted runners, or GitHub hosted runners?

@kalebsembiring
Copy link
Author

Hi @peter-evans, thank you for your fast feedback!

Currently, we're using self-hosted runners at GCP for running our action and each runner has a separate VPC network.
Is there any chance we can retry the action whenever the Github API is unreachable or timeout?

Thank you in advance!

@peter-evans
Copy link
Owner

Hi @kalebsembiring

It's generally not good practice to retry 4XX errors, so I would like to avoid that in the action.

I think the best thing to do would be to fix your networking issues. It is certainly not normal to occasionally lose connectivity like that. Alternatively, you can retry the action in the workflow itself.

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