Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting 2 output nodes to a template node causes error #78

Closed
AnderssonPeter opened this issue Jan 14, 2019 · 0 comments
Closed

Connecting 2 output nodes to a template node causes error #78

AnderssonPeter opened this issue Jan 14, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@AnderssonPeter
Copy link

Describe the bug
when using the get template node i get the following error:

Error calling service, home assistant api error: Cannot set property headersSent of #<OutgoingMessage> which has only a getter

To Reproduce
Steps to reproduce the behavior:

  1. Connect a inject node call template node connect the template node to 2 debug nodes.
  2. Click on 'run it'
  3. See error

Expected behavior
it should log 2 messages.

Screenshots
image

Example Flow

[{
		"id": "87a2a4aa.0b9c38",
		"type": "tab",
		"label": "Test",
		"disabled": false,
		"info": ""
	}, {
		"id": "a86fc2d0.91f45",
		"type": "inject",
		"z": "87a2a4aa.0b9c38",
		"name": "",
		"topic": "",
		"payload": "",
		"payloadType": "date",
		"repeat": "",
		"crontab": "",
		"once": false,
		"onceDelay": 0.1,
		"x": 160,
		"y": 80,
		"wires": [["5cf27320.48e14c"]]
	}, {
		"id": "5cf27320.48e14c",
		"type": "api-render-template",
		"z": "87a2a4aa.0b9c38",
		"name": "test",
		"server": "fa4c0dcc.2c6f8",
		"template": "{% for state in states.plant if state.state == 'problem' -%}\n  {%- if loop.last and not loop.first %} och {% elif not loop.first %}, {% else %} {% endif -%}\n  {{ state.name }}\n{%- endfor %}",
		"x": 330,
		"y": 80,
		"wires": [["f9ce677c.430f18", "5c0ff37c.23676c"]]
	}, {
		"id": "f9ce677c.430f18",
		"type": "debug",
		"z": "87a2a4aa.0b9c38",
		"name": "",
		"active": true,
		"tosidebar": true,
		"console": false,
		"tostatus": false,
		"complete": "false",
		"x": 710,
		"y": 80,
		"wires": []
	}, {
		"id": "5c0ff37c.23676c",
		"type": "debug",
		"z": "87a2a4aa.0b9c38",
		"name": "",
		"active": true,
		"tosidebar": true,
		"console": false,
		"tostatus": false,
		"complete": "false",
		"x": 710,
		"y": 180,
		"wires": []
	}, {
		"id": "fa4c0dcc.2c6f8",
		"type": "server",
		"z": "",
		"name": "Home Assistant",
		"legacy": false,
		"hassio": false,
		"rejectUnauthorizedCerts": true,
		"ha_boolean": "y|yes|true|on|home|open"
	}
]

Environment (please complete the following information):

  • Node Red Version: [0.19.5]
  • NR Home Assistant Plugin Version: [0.5.1]
  • Is Node Red running in Docker: [yes(x64, debian 9 host)]
@zachowj zachowj added the bug Something isn't working label Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants