hi,
When I do a small chain of rest calls to create something on a remote server, it works fine with 3 iterations. But when I do a bigger load I get timeouts, can I increase this somehow? I suspect that the remote server is getting busy and gets slower…
error: { [Error: ETIMEDOUT] code: 'ETIMEDOUT', connect: null },
When I do the same code with 3 apps: no problem
The REST call looks like this to create the app on the remote server:
function copyApp (guid, name) {
console.log('Copy template: '+guid+' to new app: '+name);
check(guid, String);
check(name, String);
return new Promise(function(resolve, reject){
HTTP.call( 'post', 'http://'+config.host+'/'+config.virtualProxy+'/qrs/app/'+guid+'/copy?name='+name+'&xrfkey='+config.xrfkey,
{
headers: {
'hdr-usr' : config.headerValue,
'X-Qlik-xrfkey': config.xrfkey
}
}, function( error, response ) {
if ( error ) {
console.error('error app copy', error );
throw new Meteor.Error('error app copy', error)
reject(error);
} else if (response){
// console.log('Copy app: HTTP request gave response', response.data );
console.log('Copy app: the generated guid: ', response.data.id);
resolve(response.data.id); //return app Guid
}
});
})
};
Thank you