Square Webhook: 504 Error in Production

Hi Bryan

At any point of time, either my sandbox is connected or my production. Both of them are not active at the same time.
My sandbox webhooks are working perfectly fine but my production webhooks return only 504 error code.