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

Contentful webhook construct update failure #193

Open
zoltanburgermeiszter-e2x opened this issue Jan 24, 2023 · 0 comments
Open

Contentful webhook construct update failure #193

zoltanburgermeiszter-e2x opened this issue Jan 24, 2023 · 0 comments

Comments

@zoltanburgermeiszter-e2x
Copy link

zoltanburgermeiszter-e2x commented Jan 24, 2023

We are using @cloudcomponents/cdk-contentful-webhook a my project, and when the props are changing it fails to update the webhook.

The destroy and create feature is working fine so as a workaround I implemented some hacks to force delete and recreate the webhook to update it, but this is less than ideal.

9:58:44 AM | UPDATE_FAILED        | Custom::ContentfulWebhook                       | ***cfwebconten...omResource75C8C171
Received response status [FAILED] from custom resource. Message returned: webhook.update is not a function (RequestId: 3373a666-55f6-404c-af
53-b5ab3eca434b)

10:03:21 AM | DELETE_FAILED        | AWS::CloudFormation::CustomResource             | ***cfwebconten...omResource75C8C171
Received response status [FAILED] from custom resource. Message returned: {
"status": 404,
"statusText": "Not Found",
"message": "The resource could not be found.",
"details": {},
"request": {
"url": "webhook_definitions/None",
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/vnd.contentful.management.v1+json",
"X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
"Authorization": "Bearer ...fHC1Q",
"user-agent": "node.js/v14.20.0",
"Accept-Encoding": "gzip"
},
"method": "get"
},
"requestId": "52bc51f7-eb51-4d85-a620-2f8371dba8b1"
} (RequestId: f80a3988-7939-48a9-9939-d383c365660c)

10:06:24 AM | DELETE_FAILED        | AWS::CloudFormation::CustomResource             | ***cfwebconten...omResource75C8C171
Received response status [FAILED] from custom resource. Message returned: {
"status": 404,
"statusText": "Not Found",
"message": "The resource could not be found.",
"details": {},
"request": {
"url": "webhook_definitions/None",
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/vnd.contentful.management.v1+json",
"X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
"Authorization": "Bearer ...fHC1Q",
"user-agent": "node.js/v14.20.0",
"Accept-Encoding": "gzip"
},
"method": "get"
},
"requestId": "c86331f8-7993-41fc-855d-c1535b4e4720"
} (RequestId: 33933e41-bd48-47bc-acdd-31124bb61ee9)

10:09:28 AM | DELETE_FAILED        | AWS::CloudFormation::CustomResource             | ***cfwebconten...omResource75C8C171
Received response status [FAILED] from custom resource. Message returned: {
"status": 404,
"statusText": "Not Found",
"message": "The resource could not be found.",
"details": {},
"request": {
"url": "webhook_definitions/None",
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/vnd.contentful.management.v1+json",
"X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
"Authorization": "Bearer ...fHC1Q",
"user-agent": "node.js/v14.20.0",
"Accept-Encoding": "gzip"
},
"method": "get"
},
"requestId": "f822025f-9490-4c67-a99b-e94b5376a8d8"
} (RequestId: 9aa33de3-75b3-468a-be98-220c166bd103)


 ❌  ***-web-cloudfront-stack failed: Error: The stack named ***-web-cloudfront-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE (Update successful. One or more resources could not be deleted.): Received response status [FAILED] from custom resource. Message returned: webhook.update is not a function (RequestId: 3373a666-55f6-404c-af53-b5ab3eca434b), Received response status [FAILED] from custom resource. Message returned: {
  "status": 404,
  "statusText": "Not Found",
  "message": "The resource could not be found.",
  "details": {},
  "request": {
    "url": "webhook_definitions/None",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
      "Authorization": "Bearer ...fHC1Q",
      "user-agent": "node.js/v14.20.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "52bc51f7-eb51-4d85-a620-2f8371dba8b1"
} (RequestId: f80a3988-7939-48a9-9939-d383c365660c), Received response status [FAILED] from custom resource. Message returned: {
  "status": 404,
  "statusText": "Not Found",
  "message": "The resource could not be found.",
  "details": {},
  "request": {
    "url": "webhook_definitions/None",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
      "Authorization": "Bearer ...fHC1Q",
      "user-agent": "node.js/v14.20.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "c86331f8-7993-41fc-855d-c1535b4e4720"
} (RequestId: 33933e41-bd48-47bc-acdd-31124bb61ee9), Received response status [FAILED] from custom resource. Message returned: {
  "status": 404,
  "statusText": "Not Found",
  "message": "The resource could not be found.",
  "details": {},
  "request": {
    "url": "webhook_definitions/None",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
      "Authorization": "Bearer ...fHC1Q",
      "user-agent": "node.js/v14.20.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "f822025f-9490-4c67-a99b-e94b5376a8d8"
} (RequestId: 9aa33de3-75b3-468a-be98-220c166bd103)
    at prepareAndExecuteChangeSet (/home/user/git/project/***/***-web/node_modules/aws-cdk/lib/api/deploy-stack.ts:385:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at CdkToolkit.deploy (/home/user/git/project/***/***-web/node_modules/aws-cdk/lib/cdk-toolkit.ts:209:24)
    at initCommandLine (/home/user/git/project/***/***-web/node_modules/aws-cdk/lib/cli.ts:341:12)

The stack named ***-web-cloudfront-stack failed to deploy: UPDATE_ROLLBACK_COMPLETE (Update successful. One or more resources could not be deleted.): Received response status [FAILED] from custom resource. Message returned: webhook.update is not a function (RequestId: 3373a666-55f6-404c-af53-b5ab3eca434b), Received response status [FAILED] from custom resource. Message returned: {
  "status": 404,
  "statusText": "Not Found",
  "message": "The resource could not be found.",
  "details": {},
  "request": {
    "url": "webhook_definitions/None",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
      "Authorization": "Bearer ...fHC1Q",
      "user-agent": "node.js/v14.20.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "52bc51f7-eb51-4d85-a620-2f8371dba8b1"
} (RequestId: f80a3988-7939-48a9-9939-d383c365660c), Received response status [FAILED] from custom resource. Message returned: {
  "status": 404,
  "statusText": "Not Found",
  "message": "The resource could not be found.",
  "details": {},
  "request": {
    "url": "webhook_definitions/None",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
      "Authorization": "Bearer ...fHC1Q",
      "user-agent": "node.js/v14.20.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "c86331f8-7993-41fc-855d-c1535b4e4720"
} (RequestId: 33933e41-bd48-47bc-acdd-31124bb61ee9), Received response status [FAILED] from custom resource. Message returned: {
  "status": 404,
  "statusText": "Not Found",
  "message": "The resource could not be found.",
  "details": {},
  "request": {
    "url": "webhook_definitions/None",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/vnd.contentful.management.v1+json",
      "X-Contentful-User-Agent": "sdk contentful-management.js/6.3.2; platform node.js/v14.20.0; os Linux/4.14.255-285-225.501.amzn2.x86_64;",
      "Authorization": "Bearer ...fHC1Q",
      "user-agent": "node.js/v14.20.0",
      "Accept-Encoding": "gzip"
    },
    "method": "get"
  },
  "requestId": "f822025f-9490-4c67-a99b-e94b5376a8d8"
} (RequestId: 9aa33de3-75b3-468a-be98-220c166bd103)
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

1 participant