-
Notifications
You must be signed in to change notification settings - Fork 427
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
EventListener Unsupported Protocol Scheme Error
Expected Behavior
The Tekton EventListener should correctly process incoming GitHub webhook events without errors, properly identifying and handling the protocol.
Actual Behavior
The Tekton EventListener fails to process GitHub webhook events and logs the error:
{"level":"error","ts":"2024-10-09T09:27:42.006Z","logger":"eventlistener","caller":"sink/sink.go:414","msg":"Post \"\": unsupported protocol scheme \"\"","commit":"b133ef7-dirty","eventlistener":"default-listener","namespace":"default","/triggers-eventid":"709d9f0f-bb8f-4743-899d-250a81c75e6e","eventlistenerUID":"9d5e8cd6-9b3b-4445-b648-fe59ecf975f3","/triggers-eventid":"709d9f0f-bb8f-4743-899d-250a81c75e6e"
Steps to Reproduce the Issue
- Configure a Tekton EventListener with a GitHub interceptor.
- Set up a GitHub webhook to trigger the EventListener.
- Trigger a GitHub event (e.g., push or pull request) to invoke the EventListener.
Additional Information
-
Kubernetes Version:
Client Version: v1.29.7 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.29.7+6abe8a1 -
Tekton Pipeline Version:
v0.62.0 -
EventListener Configuration:
apiVersion: triggers.tekton.dev/v1alpha1 kind: EventListener metadata: name: default-listener namespace: default spec: serviceAccountName: build-scc triggers: - name: zookeeper-build-trigger interceptors: - ref: name: "github" kind: ClusterInterceptor apiVersion: triggers.tekton.dev params: - name: "secretRef" value: secretName: github-secret secretKey: secretToken - name: "eventTypes" value: ["pull_request", "push"] - name: "addChangedFiles" value: enabled: true - ref: name: cel params: - name: filter value: extensions.changed_files.matches('/operator/zookeeper/') bindings: - ref: default-pipelinebinding template: ref: default-triggertemplate
-
Logs:
{"level":"debug","ts":"2024-10-09T09:41:13.819Z","logger":"eventlistener","caller":"sink/metrics.go:115","msg":"event listener request","commit":"b133ef7-dirty","status":"succeeded"} {"level":"debug","ts":"2024-10-09T09:41:13.819Z","logger":"eventlistener","caller":"sink/metrics.go:100","msg":"event listener request completed","commit":"b133ef7-dirty","status":202,"duration":0.001259106} {"level":"error","ts":"2024-10-09T09:41:13.837Z","logger":"eventlistener","caller":"sink/sink.go:414","msg":"Post \"\": unsupported protocol scheme \"\"","commit":"b133ef7-dirty","eventlistener":"default-listener","namespace":"default","/triggers-eventid":"7a9923a1-af8b-4baf-93c2-219e2a1cf66a","eventlistenerUID":"9d5e8cd6-9b3b-4445-b648-fe59ecf975f3","/triggers-eventid":"7a9923a1-af8b-4baf-93c2-219e2a1cf66a","/trigger":"zookeeper-build-trigger","stacktrace":"github.com/tektoncd/triggers/pkg/sink.Sink.processTrigger\n\tgithub.com/tektoncd/triggers/pkg/sink/sink.go:414\ngithub.com/tektoncd/triggers/pkg/sink.Sink.HandleEvent.func1\n\tgithub.com/tektoncd/triggers/pkg/sink/sink.go:202"}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.