Skip to content

Commit

Permalink
fix(GitLab Trigger Node): Fix trigger activation 404 error (#6711)
Browse files Browse the repository at this point in the history
* fix webhook checkExists not deleting static data

* improve webhook checkExists not deleting static data
  • Loading branch information
maspio authored Jul 21, 2023
1 parent 95837d2 commit 8ceb832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Gitlab/GitlabTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class GitlabTrigger implements INodeType {
try {
await gitlabApiRequest.call(this, 'GET', endpoint, {});
} catch (error) {
if (error.cause.httpCode === '404') {
if (error.cause.httpCode === '404' || error.description.includes('404')) {
// Webhook does not exist
delete webhookData.webhookId;
delete webhookData.webhookEvents;
Expand Down

0 comments on commit 8ceb832

Please sign in to comment.