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

GitHub WebHook ping event: Webhook processing failed: event not defined to be parsed #7555

Closed
3 tasks done
GuangTianLi opened this issue Oct 27, 2021 · 2 comments · Fixed by #10082
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@GuangTianLi
Copy link

If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

A list of the steps required to reproduce the issue. Best of all, give us the URL to a repository that exhibits this issue.

Request URL: <WebHook URL>
Request method: POST
Accept: */*
content-type: application/json
User-Agent: GitHub-Hookshot/04c124e
X-GitHub-Delivery: 33f01390-36cd-11ec-94f4-a0896a480161
X-GitHub-Event: ping
X-GitHub-Hook-ID: 325405283
X-GitHub-Hook-Installation-Target-ID: 421364558
X-GitHub-Hook-Installation-Target-Type: repository
X-Hub-Signature: sha1=f92aec6a8e42100292bab7d3a155d0dfd91c63b4
X-Hub-Signature-256: sha256=592c7264f830738bde2fe6eec8341b2e343183608dc0e44c84311959de459343

Expected behavior

A clear and concise description of what you expected to happen.

Response 200

Screenshots

If applicable, add screenshots to help explain your problem.

Version

Paste the output from `argocd version` here.
argocd: v2.1.3+d855831
  BuildDate: 2021-09-29T21:51:21Z
  GitCommit: d855831540e51d8a90b1006d2eb9f49ab1b088af
  GitTreeState: clean
  GoVersion: go1.16.5
  Compiler: gc
  Platform: linux/amd64

Logs

Paste any relevant application logs here.
@GuangTianLi GuangTianLi added the bug Something isn't working label Oct 27, 2021
@BrianHicks
Copy link

I noticed this happening too! To save future issue searchers some work: Argo CD 2.1.5 fails on the ping event, but works on a push event.

You can tell which was which by:

  1. going to the GitHub UI
  2. opening your webhook
  3. opening the delivery history
  4. opening an event
  5. examining the X-GitHub-Event header

@tarrychk
Copy link

tarrychk commented Feb 9, 2022

This is similar to #6029 which was fixed by #6034.

payload, err = a.github.Parse(r, github.PushEvent)
needs to be changed to payload, err = a.github.Parse(r, github.PushEvent, github.PingEvent).

fishman added a commit to fishman/argo-cd that referenced this issue Mar 8, 2022
fishman added a commit to fishman/argo-cd that referenced this issue Mar 8, 2022
crenshaw-dev pushed a commit that referenced this issue Jul 28, 2022
- Add github ping event handler
- Move webhook data to testdata folder

Signed-off-by: Liam Jarvis <jarviliam@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants