matrix-org / matrix-hookshot

A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
https://matrix-org.github.io/matrix-hookshot/
Apache License 2.0
283 stars 68 forks source link

Hookshot does not correctly respond to Salesforce webhooks #837

Closed Twi1ightSparkle closed 10 months ago

Twi1ightSparkle commented 10 months ago

Salesforce requires that you respond this to any webhook, otherwise it assumes not received and resends. This causes Hookshot to post the same events repeatably every time Sf retries

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound">
<Ack>true</Ack>
</notificationsResponse>
</soapenv:Body>
</soapenv:Envelope>

The customer also sees this in their Salesforce webhook log

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog

Nothing useful in the Hookshot logs with debug enabled.