I recently integrated webhooks into my server where when ever a push event happens, bitbucket sends data to the server and parses it and displays some sort of commit message in our discord.
This worked great for around 2 weeks. Now, suddenly, the webhooks stopped working specifically for any pushes I do to a few repositories and I cannot understand why. The webhooks work for another developer with no issues but do not work for me.
The only way to get the webhook to work once for me is to change the webhook URL and then to change it back. It will then proceed to work exactly once.
I just tried upgrading GIT and that also allowed the webhook to work exactly once. After that, it no longer works. That being said, it does work for my other developer 100% of the time. We are pushing to the same branch for the same repository.
Here is a video reproduction of my issue. Note, the 404 error is part of the response from the api if the webhook isn't valid. As you can see in the video, I push upstream and bitbucket does not do anything with the webhook. The commits can also be seen in the repository.
https://gyazo.com/116f0def00e455d7987ec4980fd9420b
If anyone can give me insight to why this happens I'd very much appreciate it. Thanks!