-
Notifications
You must be signed in to change notification settings - Fork 445
Description
when you try to update a bitbucketcloud webhook (repositorywebhook) the following error is thrown:
2022-09-19 21:54:59 [ERROR] internal server error (caused by: Update bitbucketcloud ***/***: bitbucketcloud.UpdateHook. Data : {"read_only":false,"description":"","links":{"self":{"href":"","name":""}},"url":"","created_at":"0001-01-01T00:00:00Z","skip_cert_verification":false,"source":"","history_enabled":false,"active":false,"subject":{"links":{"self":{"href":"","name":""},"html":{"href":"","name":""},"avatar":{"href":"","name":""}},"type":"","name":"","full_name":"","uuid":""},"type":"","events":["pullrequest:created","pullrequest:updated"],"uuid":""}: Unable to update webhook on bitbucketcloud. Status code : 400 - Body: {"type": "error", "error": {"message": "Bad request", "fields": ["Field: {io.atlassian.webhooks.config.exceptions.FieldValidationException: Required field: \"url\" is not present.field} Error: {io.atlassian.webhooks.config.exceptions.FieldValidationException: Required field: \"url\" is not present.message}"]}}. ) action=vcs.(*Service).putHookHandler action_metadata_name=bitbucketcloud action_metadata_owner=*** action_metadata_repo=herakles caller=github.com/ovh/cds/engine/service.WriteError deprecated=false handler=vcs.(*Service).putHookHandler ip_address=[::1]:40368 method=PUT request_id=2070a3c0-71c6-4d06-9d60-00599303028a request_uri=/vcs/bitbucketcloud/repos/***/***/hooks route=/vcs/<name>/repos/<owner>/<repo>/hooks source_file=/tmp/790ad7b9a1a85167593986ed564384b7/run/engine/service/http.go source_line=157 stack_trace=Unable to update webhook on bitbucketcloud. Status code : 400 - Body: {"type": "error", "error": {"message": "Bad request", "fields": ["Field: {io.atlassian.webhooks.config.exceptions.FieldValidationException: Required field: \"url\" is not present.field} Error: {io.atlassian.webhooks.config.exceptions.FieldValidationException: Required field: \"url\" is not present.message}"]}}. bitbucketcloud.UpdateHook. Data : {"read_only":false,"description":"","links":{"self":{"href":"","name":""}},"url":"","created_at":"0001-01-01T00:00:00Z","skip_cert_verification":false,"source":"","history_enabled":false,"active":false,"subject":{"links":{"self":{"href":"","name":""},"html":{"href":"","name":""},"avatar":{"href":"","name":""}},"type":"","name":"","full_name":"","uuid":""},"type":"","events":["pullrequest:created","pullrequest:updated"],"uuid":""} github.com/ovh/cds/sdk.WrapError /tmp/790ad7b9a1a85167593986ed564384b7/run/sdk/error.go:597 github.com/ovh/cds/engine/vcs/bitbucketcloud.(*bitbucketcloudClient).UpdateHook /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/vcs/bitbucketcloud/client_hook.go:163 github.com/ovh/cds/engine/vcs.(*Service).putHookHandler.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/vcs/vcs_handlers.go:1040 github.com/ovh/cds/engine/api.(*Router).handle.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:445 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/ovh/cds/engine/api.(*Router).recoverWrap.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:173 github.com/ovh/cds/engine/api.(*Router).setRequestID.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:121 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/gorilla/handlers.CompressHandlerLevel.func1 /go/pkg/mod/github.com/gorilla/handlers@v0.0.0-20160816184729-a5775781a543/compress.go:143 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/ovh/cds/engine/api.(*Router).compress.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:96 github.com/ovh/cds/engine/api.(*Router).pprofLabel.func1 /tmp/790ad7b9a1a85167593986ed564384b7/run/engine/api/router.go:88 net/http.HandlerFunc.ServeHTTP /usr/local/go/src/net/http/server.go:2084 github.com/gorilla/mux.(*Router).ServeHTTP /go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 net/http.serverHandler.ServeHTTP /usr/local/go/src/net/http/server.go:2916 net/http.(*conn).serve /usr/local/go/src/net/http/server.go:1966 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1571 Update bitbucketcloud ***