Hello,
I am trying to use Maximo REST API to fetch details list of incident details. I get the below error.
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
In node.js code, the authentication is ok. I am not able to see a request/response in the debugger. Any help would be greatly appreciated.
router.get("/incidents", function (req, res) {
var authcookie = req.session.authcookie;
var maximo = new Maximo(options,authcookie);
maximo.resourceobject("CDUISRMINCIDENT")
.select(["*"])
.pagesize(1)
.fetch()
.then(function(resourceset)
{
jsondata = resourceset.thisResourceSet();
console.log(jsondata);
res.json(jsondata);
uri = jsondata[0]["href"];
})
.fail(function (error)
{
console.log('****** Error Code = '+error);
});
});
#SupportMigration#Maximo#Support#AssetandFacilitiesManagement