This error leads me to 2 hours for finding the solution.
Failure/Error: request_body = Mustache.render(body,data)
No such file or directory - ./mustache.mustache
So the problem is because I change the variable type from string to JSON. It seems that Mustache(1.0.5) can’t render JSON type, so we need to generate JSON string first.
request_body = Mustache.render(JSON.generate(body),data)
ENOENT stand of “Error No Entry or Error No Entity”. Yea that’s right JSON is not the right entry for the mustache, telling "no such file or directory" is really helping me.
Previously published in https://imantung.github.io at 23 Aug 2017