Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"RangeError: Maximum call stack size exceeded" when using http request node #200

@Torsten85

Description

@Torsten85

Describe the bug
Sometimes lights don't react to input from an http request node.

A "RangeError: Maximum call stack size exceeded" error is logged in the server console

Expected behavior
The error should not happen obviously

Please complete the following information:

  • Node-RED version: [latest docker image]
  • Device running Node-RED: [raspberry]

Additional context

the http request node adds msg.req und msg.res to the message object.
Huemagic tries to merge that req object with a future state here: https://github.com/Foddy/node-red-contrib-huemagic/blob/master/huemagic/hue-light.js#L283

The req object has circular fields, so the merge function would call itself indefinitly.
This should be an easy fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions