Webhook from Cockpit CMS not triggering rebuild?


#1

Hi, I’m currently using Cockpit CMS to build a website. Cockpit supports webhooks when content is updated. The webhooks work on bitbucket, GitHub, and netlify so far in my testing, but it doesn’t trigger a rebuild on Buddy, which I want to use. If I manually visit my webhook in the browser, it triggers the rebuild just fine.

Here’s the response from the webhook sent out by Cockpit:

FORM/POST PARAMETERS

None

HEADERS

X-Amz-Cf-Id: -5o5inYufItu88GQ6mJ2NBvmD3uP5IThRGoXB0QcD4iv8YtAXfqQJw==

Via: 1.1 a36c70886957e4cb0f969b489a2b503e.cloudfront.net (CloudFront), 1.1 vegur

Content-Length: 393

Connection: close

Cloudfront-Is-Mobile-Viewer: false

Cloudfront-Is-Tablet-Viewer: false

Fromscratch: 1

Connect-Time: 13

Content-Type: application/json

Cloudfront-Viewer-Country: US

X-Request-Id: 3dbe94a0-3f54-498e-ae81-9e7c281b3179

Cloudfront-Is-Desktop-Viewer: true

Cloudfront-Forwarded-Proto: http

Cloudfront-Is-Smarttv-Viewer: false

Accept: /

Total-Route-Time: 0

Host: requestbin.fullcontact.com

RAW BODY

{“event”:“collections.save.after”,“hook”:“Request test”,“backend”:1,“args”:[“posts”,{“published”:true,“title”:“Test 4th post”,“tags”:"",“excerpt”:“Test post”,“image”:[],“content”:"> test post",“title_slug”:“test-4th-post”,"_mby":“5c4958e96334360011000184”,"_by":“5c4958e96334360011000184”,"_modified":1548620363,"_created":1548383652,"_id":“5c4a75a4633436002c0000fc”,"_pid":null,"_o":0},true]}