Mohammad Sharaf Ali
03/15/2023, 5:28 PMvar model = new SCATrainingExtensionSS2Model();
model.fetch({}).then((response) => console.log({response}));
Response
Impossible to parse backend error - Request {"url":"https:/abc.com/extension_ss2/extensions/Vendor/Extension/1.0.0/Modules/Extension/SuiteScript2/Extension.Service.ss?c=abc123&n=1","type":"GET","isLocal":false,"global":true,"processData":true,"async":true,"contentType":"application/x-www-form-urlencoded; charset=UTF-8","accepts":{"*":"*/*","text":"text/plain","html":"text/html","xml":"application/xml, text/xml","json":"application/json, text/javascript","script":"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},"contents":{"xml":{},"html":{},"json":{},"script":{}},"responseFields":{"xml":"responseXML","text":"responseText","json":"responseJSON"},"converters":{"text html":true},"flatOptions":{"url":true,"context":true},"jsonp":"callback","cache":true,"dataType":"json","parse":true,"data":"","emulateHTTP":false,"emulateJSON":false,"dataTypes":["text","json"],"crossDomain":false,"hasContent":false}Berenice Domínguez
03/15/2023, 5:42 PMSteve Goldberg
03/15/2023, 5:42 PMSteve Goldberg
03/15/2023, 5:43 PMSteve Goldberg
03/15/2023, 5:46 PMMohammad Sharaf Ali
03/15/2023, 8:49 PM/**
* @NApiVersion 2.x
* @NModuleScope Public
*/
define(['N/log'], function (log) {
"use strict";
function service (context) {
log.debug('SCATrainingExtension -> method', context.request.method);
var response = {};
switch (context.request.method) {
case 'GET':
//response = SCATrainingExtensionModel.get(context.request)
break;
}
context.response.write(JSON.stringify(response));
}
return {
service: service
};
});
And there is nothing in the execution log (as seen in the screenshot).Mohammad Sharaf Ali
03/16/2023, 8:38 AMextension_ss2 .Berenice Domínguez
03/16/2023, 10:34 PMMohammad Sharaf Ali
03/17/2023, 7:50 AM_ss2 suffix.Berenice Domínguez
03/17/2023, 1:14 PMMohammad Sharaf Ali
03/17/2023, 7:01 PM