Menu

Post image 1
Post image 2
1 / 2
0

The webhook that worked in Postman and nowhere else

DEV Community·Vineeth N Krishnan·29 days ago
#NHXKJagP
Reading 0:00
15s threshold

The webhook that worked in Postman and nowhere else TL;DR : an app I work on was firing webhooks at a third-party device API. The receiver kept returning 401. Postman, with the same payload, got 200 every time. The cause was not signing logic, not auth, not network. The app had two completely different bootstrap paths, the secret-loading config was wired into only one of them, and a silent-skip guard quietly hid the real failure under a misleading 401. So there I was, staring at a wall of 401 responses in the logs. The app was firing webhooks at a third-party device API every time something on our side changed state. Every single one was bouncing back as "unauthorized". Fine, must be the signature. I copied the raw request body straight out of the logs, dropped it into Postman, signed it the same way the app does, and fired it at the same URL. 200 OK . First try. So Postman was happy. The app was not. Same payload, same URL, same headers (so I thought), and yet only one of them was getting through.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More