Hi Team,
Recently sonalika was encountered with 504 error while post API for lead and opportunity error,
It was informed that an issue like this is a server error and it is an intermittent error,
Kindly monitor it and you can report it to the dev team if incase it still keeps coming
