atomist-attic/github-rugs

ErrorHandler for InstallWebhook.ts function not found during error processing

Closed this issue · 1 comments

├─┬ Error: Could not find rug with name: WebHookErrorHandler
| └── Respond WebHookErrorHandler None ArraySeq(SimpleParameterValue(owner,slimslender), SimpleParameterValue(url,https://webhook-staging.atomist.services/github), SimpleParameterValue(corrid,f6a3f0a2-88c6-40e9-a1e7-e559b55bb14b::slimslender::directmessage::T1RCET8RF::D2U44G1HC), SimpleParameterValue(handle,{}), SimpleParameterValue(__mappedParameters,{"0":{"localKey":"owner","foreignKey":"atomist://github/repository/owner"},"1":{"localKey":"url","foreignKey":"atomist://github_webhook_url"},"2":{"localKey":"corrid","foreignKey":"atomist://correlation_id"}}), SimpleParameterValue(__intent,{"0":"install org-webhook"}), SimpleParameterValue(__secrets,{"0":"github://user_token?scopes=admin:org_hook"}), SimpleParameterValue(__tags,{"0":"github","1":"webhooks"}), SimpleParameterValue(__name,InstallGitHubOrgWebhook), SimpleParameterValue(__description,Create a webhook for a whole organization), SimpleParameterValue(__kind,command-handler))
└── Received Response(Failure,Some(Failed to create org-level webhook for `slimslender`),None,Some({"message":"Validation Failed","errors":[{"resource":"Hook","code":"custom","message":"Hook already exists on this organization"}],"documentation_url":"https://developer.github.com/v3/orgs/hooks/#create-a-hook"})) back from Execute install-github-org-webhook None ArraySeq(SimpleParameterValue(owner,slimslender), SimpleParameterValue(url,https://webhook-staging.atomist.services/github), SimpleParameterValue(corrid,f6a3f0a2-88c6-40e9-a1e7-e559b55bb14b::slimslender::directmessage::T1RCET8RF::D2U44G1HC), SimpleParameterValue(handle,{}), SimpleParameterValue(__mappedParameters,{"0":{"localKey":"owner","foreignKey":"atomist://github/repository/owner"},"1":{"localKey":"url","foreignKey":"atomist://github_webhook_url"},"2":{"localKey":"corrid","foreignKey":"atomist://correlation_id"}}), SimpleParameterValue(__intent,{"0":"install org-webhook"}), SimpleParameterValue(__secrets,{"0":"github://user_token?scopes=admin:org_hook"}), SimpleParameterValue(__tags,{"0":"github","1":"webhooks"}), SimpleParameterValue(__name,InstallGitHubOrgWebhook), SimpleParameterValue(__description,Create a webhook for a whole organization), SimpleParameterValue(__kind,command-handler))```

This occurred while I was trying to install an org level webhook when it already existed in my org.