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

Exception in trigger:state node #45

Closed
patrik3k opened this issue Mar 1, 2018 · 2 comments
Closed

Exception in trigger:state node #45

patrik3k opened this issue Mar 1, 2018 · 2 comments
Labels

Comments

@patrik3k
Copy link

patrik3k commented Mar 1, 2018

The trigger state node causes a exception when userDir is not specified in config.js

01/03/2018, 09:20:52 node: Door opened
msg : string[48]
"Could not find userDir to use for database store"

This exception is thrown in base-nod.js in function async getDb() at row 72

let dbLocation = this.RED.settings.get('userDir');

A better way to read this property is
let dbLocation = this.RED.settings.userDir;

See node-red/node-red#1543

@patrik3k
Copy link
Author

patrik3k commented Mar 1, 2018

Huge thanks for a great package. Its fantastic.

@AYapejian AYapejian added the bug label May 4, 2018
@AYapejian
Copy link
Owner

Thanks, and nice find. I made the change and will be in the next release.

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

No branches or pull requests

2 participants