The webhooks troubleshooting data is generated as JSON data object in the following format.
Field | Description |
---|---|
timestamp | The timestamp at which the handling of the webhook event started in UNIX format. |
elapsed_time | The duration of the handling of the event in milliseconds. |
errors | A list of errors encountered while handling the event. |
request | An object containing details of the request that is sent to the target, including the body. |
response | An object containing the details of the response received from the target. |
event | An object containing the the details of the event that triggered the webhook, including the raw data. |
The following JSON object is an example of the troubleshooting data.
{ "timestamp": 1694520528315, "elapsed_millis": 208, "errors": [ "error executing webhook: unexpected HTTP response status" ], "request": { "method": "POST", "url": "https://webhook-target/a9736bc8", "headers": { "Content-Type": "application/json" }, "payload": "{\"domain\":\"artifact\",\"event_type\":\"deployed\",\"data\":{\"repo_key\":\"example-repo-local\",\"path\":\"some.log\",\"name\":\"some.log\",\"sha256\":\"069092736c73613a25917f582f8a2621b8495cb723914c85dc570761ce0846f8\",\"size\":353178},\"subscription_key\":\"test\",\"source\":\"jfrog/jfrt@01h9mspg5atsp402qqxm071zjv\"}", "retries_attempted": 0 }, "response": { "status": 404, "headers": { "Cache-Control": "no-cache, private", "Content-Type": "application/json", "Date": "Tue, 12 Sep 2023 12:08:48 GMT", "Server": "nginx", "Vary": "Accept-Encoding" }, "body": "{\"success\":false,\"error\":{\"message\":\"Alias a9736bc8 not found\",\"id\":null}}" }, "event": { "id": "01HA4MPK6XVKTD0XMS9SVM1GER", "subscription_key": "test", "domain": "artifact", "event_type": "deployed", "data": "{\"repo_key\":\"example-repo-local\",\"path\":\"some.log\",\"name\":\"some.log\",\"sha256\":\"069092736c73613a25917f582f8a2621b8495cb723914c85dc570761ce0846f8\",\"size\":353178}", "source": "jfrog/jfrt@01h9mspg5atsp402qqxm071zjv" } }