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

engine.run leading to unhandled promise error #204

Open
gone-phishing opened this issue Apr 1, 2020 · 0 comments
Open

engine.run leading to unhandled promise error #204

gone-phishing opened this issue Apr 1, 2020 · 0 comments

Comments

@gone-phishing
Copy link

@gone-phishing gone-phishing commented Apr 1, 2020

Getting below when I am running the engine:
let results = await engine.run(facts);
_.each(results.events, event => {
triggeredevents.push(event.params.data);
})

error log:
(node:22949) Warning: a promise was created in a handler at path/node_modules/json-rules-engine/dist/engine.js:278:21 but was not returned from it, see http://goo.gl/rRqMUw

at Function.Promise.cast (path/node_modules/bluebird/js/release/promise.js:225:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.