-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Comments
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? |
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. Thank you in advance! |
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. |
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
The text was updated successfully, but these errors were encountered: