I am using a simple redirect operation after writing some data into data extension
function main() {
try {
var response = processGoogleCaptcha();
var captcha = new CaptchaResponse(response.success);
if (captcha.success == true) {
// writeFormData('Register_interest');
Redirect("https://pub.s7.exacttarget.com/xxxx/", true);
} else {
var error_result = "Google Captcha auth failed!";
sendMessage(error_result);
}
} catch (e) {
var error = Platform.Function.Stringify(e);
sendMessage(error);
Redirect("https://pub.s7.exacttarget.com/xxxx/", true);
}
}
main();
I get the following error:
{
"message": "Error in the application.",
"description": "ExactTarget.OMM.AMPScriptRedirectException: Error in the application. - from Jint\r\n\r\n"
}
I am not using a single line of AMPScript in my code.
Does anyone know what the error could be from?