Managing and debugging webhooks
You can use a query to see if your event was triggered.
Add fields to the Query Presentation box by using the lower set of arrows. If you save the query into the Personal Queries folder and then click Run, you will see one payload entry in the list that is waiting to be sent to the webhook server. The payload was created when we used a Submit action. The other three columns will be blank because the REST API server has not yet picked up the payload.
- Browse to the HCL Compass installation directory.
- Go inside the compass-rest-server-distribution.
- In the bin folder, open an administrator command prompt.
- Run the start.bat file to start the REST API server.
- Running the initial webhook configuration audit
- Immediately upon startup, HCL Compass checks for any webhook configurations so that it can keep track of them and poll them for payloads to deliver.
- Audit webhook configurations STARTED
- The check for webhook configurations has started.
- Test Webhook: WebhookConfig is ENABLED
- A test webhook has been found.
- Audit webhook configurations ENDED
- HCL Compass is done checking for webhook configurations.
In the web client, you can refresh the query and see a list of results. HCL Compass successfully delivered the payload to the webhook and deleted the payload.
The WebhookData query can also be used to view information about unsuccessful webhooks. If the delivery of the payload fails, the listing is updated with information, including Response Text, Response Code, and Retry Counter. The payload will attempt to deliver 10 times.
Webhooks configurations can also be modified. View a list of webhook configurations by creating a query on the WebhookConfig record type. Select New Query and then select the WebhookConfig record type.
Add fields the query in the Query Presentation box. Save and then run the query.