Hi,
I’m trying to run this UI and we are trying to do this step since we have authorization issues that seem to possible of resolving by following this:
We are trying to add bearer token to our authorization process, but this error occurs when we start to train…
This is the code we changed a bit when making a request to train, all other code is the same as it is in the repository.
request({ method: “POST”, //WE ADDED bearer token here to the uri and to headers authorizaton uri: global.rasanluendpoint + “/train?project=” + req.query.project + “&model=” + req.query.name + “?token=” + global.nlusecuritytoken, headers: { Authorization: “Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NjY3Mjk0ODJ9.BcXU1la6fJTOKeK5ItN0VEGvAgVeB0eouSzEvdzrTD8”, ‘Content-Type’: ‘application/json’ }, body: reqBody }