+
+
+
Webhook
+
{getWebhookName(selectedLog.webhookId)}
+
+
+
Time
+
{format(new Date(selectedLog.createdAt), 'PPpp')}
+
+
+
Status
+
+ {selectedLog.status
+ ? `Success (${selectedLog.statusCode || 200})`
+ : `Failed${selectedLog.statusCode ? ` (${selectedLog.statusCode})` : ''}`}
+
+
+
+
Retry Count
+
{selectedLog.retryCount}
+
+
+
+
+
Webhook URL
+
+ {selectedLog.webhookUrl}
+
+
+
+ {!selectedLog.status && selectedLog.error && (
+
+
Error
+
+ {selectedLog.error}
+
+
+ )}
+
+
+
Payload
+
+ {JSON.stringify(selectedLog.payload, null, 2)}
+
+
+
+ {selectedLog.responseBody && (
+
+
Response Body
+
+ {typeof selectedLog.responseBody === 'string'
+ ? (() => {
+ try {
+ return JSON.stringify(JSON.parse(selectedLog.responseBody), null, 2);
+ } catch {
+ return selectedLog.responseBody;
+ }
+ })()
+ : JSON.stringify(selectedLog.responseBody, null, 2)}
+
+
+ )}
+
+
+