-
Notifications
You must be signed in to change notification settings - Fork 100
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
webhook issue. #248
Comments
webhook url: https://ipaddress:8080/api/github/hook |
It's difficult to give advice here without knowing more about your environment and configuration, but based on the information you included, I think Bulldozer is only listening for connections on the local interface. This means that GitHub, which is running on a different host, cannot connect. Try setting |
Thanks for your reply. We worked on the network rules and port, now able to get the logs as well. Facing below issue now. 11:46PM DBG received pull_request opened event github_delivery_id=99735360-b9c5-11eb-9587-fb5279698ab1 github_event_type=pull_request github_pr_num=1278 github_repository_name=MAC github_repository_owner=MAC rid=c2jf9llb63bde54b97d0 |
That error usually indicates that the server is missing configuration or the webhook configuration is incorrect. To start, can you confirm that:
|
I have the right integration_is configured but why does it looking for installation id 0's token? "https://api.git.**.com/repos/MAC/MAC/pulls/1278\": could not refresh installation id 0's token: request & |
Here is my config: address: "0.0.0.0" github: app: options: datadog: address: "127.0.0.1:8125" tags:
|
The installation ID refers to the repository or organization where Bulldozer is installed. We expect that ID to be included in the event payload with webhook event send for the app. The fact that it is 0 suggests that the payloads are not correct. How did you configure the webhook in GitHub? Was it in the GitHub App settings or did you add the webhook configuration to an individual repository using the repository settings page? |
webhook is configured as mentioned in the readme http://domain-name:port//api/github/hook. This has been manually added to the github app configurations. It was also added to repository hook settings. |
what should be the base api url? I am following as per the examples https://api.git.**.com. Is that a right one to use? or I have to update as per the url path from the payload request? |
You only need to add the hook to GitHub app settings. If you have the same hook in the repository settings, you should remove it from there.
Generally, the API URL for a GitHub Enterprise Server install looks like:
Your server might be configured differently, but the |
Thanks, that helped to make the server run without errors. I have both the ==MERGE_WHEN_READY and ==UPDATE_ME== substrings in my PR. Update is not happening with PR body substring but it works for labels. Is there anything I have to update bulldozer.yml?
|
I think you may be hitting #145. Currently, when updates are enabled by comment, the update will only happen when a change is pushed to the target branch after adding the comment. For labels, the behavior was fixed recently so that a PR will update when the label is added as well as when the target branch updates. I think the substring in the PR body will also work if it is present when the PR is opened, but if added after the fact, the target branch must update before Bulldozer will update the PR. |
Hi,
I have setup bulldozer server on linux server VM and I am getting invalid webhook error and service unavailable exception on the github advanced tab. Github server is maintained internally in a separate domain.
https://:8080/api/github/hook
We couldn’t deliver this payload: Service Unavailable
`[root@smac-build01 linux-amd64]# 5:14PM INF Server listening on localhost:8080
[root@smac-build01 linux-amd64]# curl -XPOST http://127.0.0.1:8080/api/github/hook
5:14PM WRN Received invalid webhook headers or payload error="missing event type\ngithub.com/palantir/go-githubapp/githubapp.(*eventDispatcher).ServeHTTP\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/palantir/go-githubapp/githubapp/dispatcher.go:164\ngoji%2eio.dispatch.ServeHTTP\n\t/home/runner/work/bulldozer/bulldozer/vendor/goji.io/dispatch.go:17\ngithub.com/bluekeyes/hatpear.Recover.func1.1\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/bluekeyes/hatpear/hatpear.go:113\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2069\ngithub.com/bluekeyes/hatpear.Catch.func1.1\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/bluekeyes/hatpear/hatpear.go:60\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2069\ngithub.com/palantir/go-baseapp/baseapp.AccessHandler.func1.1\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/palantir/go-baseapp/baseapp/middleware.go:88\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2069\ngithub.com/rs/zerolog/hlog.RequestIDHandler.func1.1\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/rs/zerolog/hlog/hlog.go:169\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2069\ngithub.com/palantir/go-baseapp/baseapp.NewMetricsHandler.func1.1\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/palantir/go-baseapp/baseapp/middleware.go:55\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2069\ngithub.com/rs/zerolog/hlog.NewHandler.func1.1\n\t/home/runner/work/bulldozer/bulldozer/vendor/github.com/rs/zerolog/hlog/hlog.go:30\nnet/http.HandlerFunc.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2069\ngoji%2eio.(*Mux).ServeHTTP\n\t/home/runner/work/bulldozer/bulldozer/vendor/goji.io/mux.go:74\nnet/http.serverHandler.ServeHTTP\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:2887\nnet/http.(*conn).serve\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/net/http/server.go:1952\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.16.3/x64/src/runtime/asm_amd64.s:1371" rid=c2j9i45b63bej67e0pdg
5:14PM INF http_request client_ip=127.0.0.1:36240 elapsed=0.788108 method=POST path=/api/github/hook rid=c2j9i45b63bej67e0pdg size=35 status=400 user_agent=curl/7.29.0
Invalid webhook headers or payload`
The text was updated successfully, but these errors were encountered: