openUrl returning "unable to process your request" with "iam-security-error" in new URL

openUrl returning "unable to process your request" with "iam-security-error" in new URL

Hello!

I have a deluge script that's doing a couple of things off a button press. When openUrl tries to open a new window, I get "Unable to process request." The URL, however, is valid as I have simply returned the URL with copy/ paste and successfully opened the webpage. Any ideas what's going on here?

Here's the full script. Thanks!

Deal_Id = input.Deal_ID;
// Retrieve the associated Account for the Deal
account = zoho.crm.getRecordById("Deals",Deal_Id).get("Account_Name").get("id");
contact = zoho.crm.getRecordById("Deals",Deal_ID).get("Contact_Name").get("id");
fname = zoho.crm.getRecordById("Contacts",contact).get("First_Name");
lname = zoho.crm.getRecordById("Contacts",contact).get("Last_Name");
// Retrieve the list of Calls associated with the Account
calls = zoho.crm.getRelatedRecords("Calls","Accounts",account);
// Initialize an empty list to hold the call names
call_info_list = List();
// Add each call info to the list
for each  call in calls
{
call_info = Map();
call_info.put("modified_time",call.get("Modified_Time"));
call_info.put("call_name",call.get("Subject"));
// Assuming the call name is stored in the "Subject" field
call_info.put("call_id",call.get("id"));
call_info_list.add(call_info);
}
sortOrder = call_info_list.sort(false);
recent_call = sortOrder.get(0).get("call_id");
//Sorts calls by most recent call and gets the call id of the most recent call
callmap = Map();
callmap.put("What_Id",Deal_Id);
callmap.put("$se_module","Deals");
callmap.put("Subject","Outgoing Call To" + " " + fname + " " + lname);
updatecall = zoho.crm.updateRecord("Calls",recent_call,callmap);
openUrl(editURL,"popup window");
info updatecall;
return editURL;
//864868000592765720
//<variable> = zoho.crm.updateRecord(<module_name>, <record_ID>, <record_value>, <options_map>, <connection>);