-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Describe the Bug
Webhooks are being sent twice to the server with a consistent 5-second interval between duplicates. Every webhook event triggers two POST requests instead of one.
To Reproduce
Steps to reproduce the behavior:
- Configure webhook endpoint in SMS Gate app with
sms:received - Receive an SMS message on the device
- Observe webhook delivery in server logs
- Notice two identical POST requests arriving ~5 seconds apart
Expected vs Actual Behavior
- Expected: Single webhook POST request sent per SMS event
- Actual: Two identical webhook POST requests sent for each SMS event, consistently separated by approximately 5 seconds
Example log showing the pattern:
13:35:57.543 CET POST /webhook/******* 202 Accepted
13:35:52.451 CET POST /webhook/******* 202 Accepted (5.092s difference)
13:33:22.531 CET POST /webhook/******* 202 Accepted
13:33:17.699 CET POST /webhook/******* 202 Accepted (4.832s difference)
Screenshots
N/A - Server logs included above
Environment
- App Version: 1.51.3 (1248)
- Mode: Local
- Operation: Receiving SMS
- Integration: Webhook API
- Network Type: WiFi
Smartphone
- Device: Xperia G8341
- OS: Android
- SIM Card Count: 1
Additional Context
The duplication occurs consistently for every webhook event, not randomly. Server responds with 202 Accepted to both requests. This behavior requires implementing deduplication logic on the server side as a workaround.
I will test on a second device to determine if this is device-specific or affects all installations.
Checklist Before Submission
- I have described the bug in detail.
- I have provided the steps to reproduce.
- I have included screenshots (if applicable).
- I have provided environment details.
- I have included relevant log file excerpts (if applicable).
- I have read FAQ and other relevant information.
coderabbitai