superkumario64
08/28/2017, 5:28 PM/**
* @NApiVersion 2.x
* @NScriptType restlet
*/
define([], function() {
return {
get: function() {
return "Hello get!"
},
post: function() {
return "Hello post!";
}
}
});
When I perform a GET on the endpoint, postman returns "Hello get!"
However I change the http request to POST and hit send and I get this:
{
"error": {
"code": "SYNTAX_ERROR",
"message": "org.mozilla.javascript.EcmaError: SyntaxError: Unsupported number format: ------ (INVOCATION_WRAPPER$sys#26)."
}
}
Has anyone encountered this when developing a RESTlet? Do I need to set extra headers on the POST?
Thanks.