SYNTAXERROR: UNEXPECTED END OF JSON INPUT

hofiy

Saiyan
Aug 5, 2023
325
1
18
Hi

I try to call a trigger from Javascript, I have this script in Javascript Dynaform :
CODE: $.ajax({
url: host+"/api/1.0/"+ws+"/cases/"+app_uid+"/execute-trigger/"+trig_uid+"", // endpoint URL
data: {}, // a GET request does not send parameters. But in case of other type of requests, data could be sent here
type: "PUT",
beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Bearer '+token);}, // Header with the access token

success: function(xhr, status, error){
alert("SUCCESS!!"+xhr.responseText);
},
error: function(xhr, status, error){
alert("ERROR!!"+error);
}
}); https://unexpectedendoffile.com/unexpected-end-of-json-input/

and in trigger i have this script :
CODE:mad:@textPanel="Coooooooooooooooool";

But i have this message ==> SyntaxError: Unexpected end of JSON input