mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02: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:
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"});
|
||||
});
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-emoncms",
|
||||
"version" : "0.2.0",
|
||||
"version" : "0.2.1",
|
||||
"description" : "A Node-RED node to fetch/post data to/from emoncms",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user