Thanks Hristo. I’ll take a look.
Solved this myself after understanding the internal 500 error resposne.