grav-plugin-git-sync icon indicating copy to clipboard operation
grav-plugin-git-sync copied to clipboard

GH webhook times out but manual POST request works

Open rodrigogiraoserrao opened this issue 3 years ago • 1 comments

Up until yesterday, I had been using this amazing plugin to sync my website with my repo. My typical workflow would be to open my editor of choice locally, edit my pages locally, push to my repo, and have the plugin sync the website. This was working flawlessly for months on end.

Today, it mysteriously stopped working 🤷

When I update the repository, I can go to the webhook settings and see that the event was sent, but that it failed because it timed out. However, if I go to reqbin.com, I can make a POST request manually, with the same payload and to the same URL, and I get a 200 (OK) response in around 2 seconds (which seems to be faster than the 10s window that GH gives us to reply to the webhook), and this manual POST request successfully triggered syncing; not only does it return a success message:

{
    "status": "success",
    "message": "GitSync completed the synchronization"
}

But I effectively see the updates on my website after the manual POST.

Synchronisation also appears to be working fine through the admin page, where clicking "Synchronise GitSync" works without an issue.

I have no clue as to what is happening, and I find it odd that GH fails to send the webhook, but I can. Any suggestions of things I might try to fix this/things I should do to help you troubleshoot the issue?

Thanks for your help, Rodrigo.

rodrigogiraoserrao avatar Feb 22 '22 10:02 rodrigogiraoserrao

Is this still an issue?

w00fz avatar May 21 '22 14:05 w00fz