diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index c6a86a761..d192af453 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -48,6 +48,10 @@ module.exports = function(RED) { RED.nodes.createNode(this,n); if (RED.settings.httpNodeRoot !== false) { + if (!n.url) { + this.warn(RED._("httpin.errors.missing-path")); + return; + } this.url = n.url; this.method = n.method; this.swaggerDoc = n.swaggerDoc; diff --git a/nodes/core/locales/en-US/messages.json b/nodes/core/locales/en-US/messages.json index 74373246a..bf9162faf 100644 --- a/nodes/core/locales/en-US/messages.json +++ b/nodes/core/locales/en-US/messages.json @@ -269,6 +269,7 @@ "httpreq": "http request", "errors": { "not-created": "Cannot create http-in node when httpNodeRoot set to false", + "missing-path": "missing path", "no-response": "No response object", "json-error": "JSON parse error", "no-url": "No url specified"