Git Webhook error 500 and how to debug it

I’m on Cyberpanel Version 2.4.2 commit 455c25d7cbde7de66135d6f655654f4305602597 running on Ubuntu 20.04.6.

I setup a connection to a Git repo for a domain, but the provided webhook fails with a 500 error no matter how it’s accessed (directly via IP or domain, or via a called hook from github). It doesn’t appear to throw any error in the site’s error log. How can I go about debugging this?

One side thing I noticed is that if you have a period in your repo name, Cyberpanel cannot make a connection to it. After I changed the repo to remove the period, Cyberpanel connected.