It turns out that both were solved at the same time: now the call to node produces the expected output. We'll never know what was going wrong in the old version.
That's great! Sometimes it's very hard to debug the error at first, but then when you find it out it could have been the simplest mistake. But as long as the new version is OK for you, it's fine.