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

Error sending Pipeline events #7

Open
wawan93 opened this issue Jun 7, 2020 · 2 comments
Open

Error sending Pipeline events #7

wawan93 opened this issue Jun 7, 2020 · 2 comments

Comments

@wawan93
Copy link

wawan93 commented Jun 7, 2020

Error in logs:
time="2020-06-07T21:49:16Z" level=error msg="Can't use SetServiceHostFromURL with empty arg" chat=178132 domain= file=/go/src/github.com/integram-org/gitlab/vendor/github.com/requilence/integram/context.go func="github.com/integram-org/gitlab/vendor/github.com/requilence/integram.(*Context).SetServiceBaseURL" ip="10.244.1.122:44514" line=76 service=gitlab url="POST /gitlab/cKTIIaMSlSF"

GitLab 13.0.5-ee (260c6231ed0)
Integram docker image: integram/gitlab@sha256:616cf532be9

@ilyashatalov
Copy link

same :(

@ikennykachun
Copy link

ikennykachun commented Apr 12, 2021

The Source seems not support "object_kind = pipeline"

You have to add your own handler in function webhookHandler
Or you give up pipeline, use Job instead.

Furthermore, 1 simple typo need to update too.

@@ -563,13 +595,14 @@ func webhookHandler(c *integram.Context, request *integram.WebhookContext) (err
	if wh.Repository.Homepage != "" {
		c.SetServiceBaseURL(wh.Repository.Homepage)
	} else if wh.ObjectAttributes != nil {
	-	if wh.ObjectAttributes.URL == "" {
	+	if wh.ObjectAttributes.URL != "" {
			c.SetServiceBaseURL(wh.ObjectAttributes.URL)
		} else if wh.Commit != nil {
			c.SetServiceBaseURL(wh.Commit.URL)
		} else {
			raw, _ := request.RAW()
			c.Log().WithField("wh", string(*raw)).Error("gitlab webhook empty url")

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

3 participants