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: 'xyz.ngrok.io',
    accept: '*/*',
    'content-type': 'application/json',
    'content-length': '1250',
    expect: '100-continue',
    'x-forwarded-for': 'xxx.xx.xx.xxx'
  },
  rawHeaders: [
    'Host',
    'xyz.ngrok.io',
    'Accept',
    '*/*',
    'Content-Type',
    'application/json',
    'Content-Length',
    '1250',
    'Expect',
    '100-continue',
    'X-Forwarded-For',
    'xxx.xx.xx.xxx'
  ],

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: