messageDetails.get shows error

messageDetails.get shows error

I was trying to implemenet zoho mail automation.
My code can be seen below:

messageDetails = zoho.mail.getMessage(mail_messageid);
fromAddress = messageDetails.get("FROM");

My test run works but when i click proceed, i get the following error



Anyone having any insights as to why this is happening? and probably a fix for it too?