Trigger Webhooks
Context
If BetterStack is mentioning that Webhooks monitor is failing, it’s likely due to an error in the webhook delivery process. This could be caused by a variety of factors, such as network issues, server downtime, or misconfigured webhook settings. First, fix the issue causing the failure. Then, follow this procedure to trigger the webhooks manually.When to Use
- Webhooks monitors fails on BetterStack
Prerequisites
- SSH access to Render services
- Webhook event timestamps or date range
Procedure
Step 1: SSH into Render Service
Connect to the main application service via SSH:Step 2: Navigate to Application Directory
Step 3: Trigger Webhooks
Use the webhook trigger script to replay webhooks for events after a specific timestamp:Accepted Date Formats
The script accepts three date formats:The date parameter is required. The script will trigger webhooks for all events created after the specified timestamp.
Step 4: Monitor Execution
The script will:- Query for webhook events created after the specified timestamp
- Retry delivery for each event
Verification
After triggering webhooks, verify that https://worker-dramatiq.onrender.com/webhooks is returning status “ok”.Post-Procedure
- Document the webhook trigger in the on-call log
- Confirm webhook delivery with the merchant
Troubleshooting
Script shows: No module named scripts.webhook_trigger
Script shows: No module named scripts.webhook_trigger
Make sure you’re using the correct command format with Not
-m
:scripts/webhook_trigger
or scripts.webhook_triegger
(note spelling).