How I will do http post call?

Hi Team,

I will try like this :

$scope.applyAbsolute = function () {
$scope.onFilterSelect({
from: moment($scope.absolute.from),
to: moment($scope.absolute.to),
var startDate = ($scope.absolute.from);
var endDate = ($scope.absolute.to);
var today = new Date();
var date_end = new Date(endDate);
var date_start = new Date(startDate);
var dataObj = {
startTime: $scope.absolute.from,
endTime: $scope.absolute.to
};
$http.post('/rest/v1/demo/postJob', dataObj)
.success(function(response) {
var data = response.data;
if(data){
console.log(data);
}});
});
};

but during the kibana build, it is throwing the exception , Please check below :

17 error Linux 4.4.120-92.70-default
18 error argv "/root/.nvm/v6.14.4/bin/node" "/root/.nvm/v6.14.4/bin/npm" "run" "build" "--" "--skip-os-packages" "--release"
19 error node v6.14.4
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error kibana@5.6.13 build: grunt build "--skip-os-packages" "--release"
22 error Exit status 3
23 error Failed at the kibana@5.6.13 build script 'grunt build "--skip-os-packages" "--release"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the kibana package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error grunt build "--skip-os-packages" "--release"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs kibana
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls kibana
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Please suggest to me what I should do the changes....

Does the server start without your plugin?

Yes without my changes .....

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.