mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
io/emoncms - Modify HTTP Timeout (#430)
* Modify HTTP timeout Increase the HTTP Timeout values from 1000 to 6000. Modify error message.
This commit is contained in:
committed by
Dave Conway-Jones
parent
d28c5291c0
commit
99b83ea4bd
@@ -138,8 +138,8 @@ module.exports = function(RED) {
|
||||
node.error(e,msg);
|
||||
node.status({fill:"red",shape:"dot",text:"HTTP Error"});
|
||||
});
|
||||
request.setTimeout(1000, function() {
|
||||
node.error("timeout: " + msg);
|
||||
request.setTimeout(6000, function() {
|
||||
node.error("HTTP Timeout",msg);
|
||||
node.status({fill:"red",shape:"ring",text:"HTTP Timeout"});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user