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

Error Publishing MQTT Message #1

Open
upstreamproductions opened this issue Dec 12, 2023 · 2 comments
Open

Error Publishing MQTT Message #1

upstreamproductions opened this issue Dec 12, 2023 · 2 comments

Comments

@upstreamproductions
Copy link

Tried configuring to publish on insert get error:

"Cannot read properties of undefined (reading 'publish')"

Get error no matter what type of event is triggered

Saltcorn log:

TypeError: Cannot read properties of undefined (reading 'publish') at Object.run (/home/saltcorn/plugin_packages/@saltcorn/mqtt/index.js:79:16) at Trigger.runWithoutRow (/home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/data/models/trigger.ts:295:14) at /home/saltcorn/.local/lib/node_modules/@saltcorn/cli/node_modules/@saltcorn/server/routes/actions.js:621:30 at processTicksAndRejections (node:internal/process/task_queues:95:5)

@glutamate
Copy link
Contributor

Looks like the client is not configured, have you set up the broker URL in the module configuration? Are you able to receive messages by adding a trigger on the MqttReceive event?

@upstreamproductions
Copy link
Author

upstreamproductions commented Dec 13, 2023 via email

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

No branches or pull requests

2 participants