Socket hang up error with nodejs in indesign2015
Hi,
I want to upload file and download files from server with adobe cep indesign extension.. i have done by using nodejs..
nodejs request.get() and request.post() works fine in indesign 2017 and above..
but in indesign cc 2015 returns "socket hang up" error..
how to fix it?
and any other configuration for use nodejs in indesign cc2015
this is my sample code,
var FormData = require('form-data');
var request = require('request');
options = {
url:uploadUrl,
formData: formData,
headers:headers,
strictSSL: false,
rejectUnauthorized: false,
}
request.post(options, function(err, httpResponse, body) {
if (err) {
showDlg('Upload failed');
}
else {
showDlg("Upload successfully");
}
}
});
Pls help
