kiteConnect.getMargins("equity") end point is very today (17th Mar 2022).. at 8:30 AM it took around 50 mins to respond and at 9:25 AM it took around 7 mins and through out the day it was around 5 mins range.. can you pls investigate and publish your timelines with logs.
You can checkout the time out here.