Singleton save webhook generating a BadRequestError and sending empty body

I have setup Cockpit to fire a request using webhooks every time a singleton is updated, using singleton.saveData.after. I am using node w/ express to catch the requests.

The webhook is fired, but express throws the following error:
BadRequestError: request aborted
at IncomingMessage.onAborted (/home/path/to/project/node_modules/raw-body/index.js:231:10)
at IncomingMessage.emit (events.js:223:5)
at abortIncoming (_http_server.js:507:9)
at socketOnClose (_http_server.js:500:3)
at Socket.emit (events.js:228:7)
at TCP. (net.js:664:12)

If I print the request body, it comes out as {}.

I am also using webhooks to inform me whenever a collection entry is updated and that works properly, so I don’t think this is a problem with node or express. In case you need to look at the request headers, they are as follows:

  headers: {
    host: '',
    accept: '*/*',
    'content-type': 'application/json',
    'content-length': '1250',
    expect: '100-continue',
    'x-forwarded-for': ''
  rawHeaders: [

Is this a known issue? I have found a temporary workaround that’s specific to our use case, but I am still not able to get the data from the webhook request in any way.
Any help is appreciated :slight_smile: