Closed pyther closed 7 months ago
Based on https://github.com/BigThunderSR/onstar2mqtt/issues/134, I'm guessing you forgot to define "--env MQTT_ONSTAR_POLLING_STATUS_TOPIC=".
Thanks, that did the trick.
For some context, I switched from michaelwoods/onstar2mqtt to your version, due to https://github.com/michaelwoods/onstar2mqtt/issues/347 and just assumed it would be a drop in replacement. You've probably thought of this, but it might be useful to add some checks at startup to ensure necessary environment variables are set.
Anyways, really appreciate the effort in keeping this project active.
Done as requested in #140 and released in version 1.10.0. Please verify. Thanks.
Thanks, I pulled down the latest image and it seems to work as expected.
Mar 12 21:37:03 kai onstar2mqtt[25750]: /app/src/index.js:64
Mar 12 21:37:03 kai onstar2mqtt[25750]: throw new Error(`"${mqttRequiredProperties[prop]}" is not defined`);
Mar 12 21:37:03 kai onstar2mqtt[25750]: ^
Mar 12 21:37:03 kai onstar2mqtt[25750]:
Mar 12 21:37:03 kai onstar2mqtt[25750]: Error: "MQTT_ONSTAR_POLLING_STATUS_TOPIC" is not defined
Mar 12 21:37:03 kai onstar2mqtt[25750]: at Object.<anonymous> (/app/src/index.js:64:15)
Mar 12 21:37:03 kai onstar2mqtt[25750]: at Module._compile (node:internal/modules/cjs/loader:1356:14)
Mar 12 21:37:03 kai onstar2mqtt[25750]: at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
Mar 12 21:37:03 kai onstar2mqtt[25750]: at Module.load (node:internal/modules/cjs/loader:1197:32)
Mar 12 21:37:03 kai onstar2mqtt[25750]: at Module._load (node:internal/modules/cjs/loader:1013:12)
Mar 12 21:37:03 kai onstar2mqtt[25750]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
Mar 12 21:37:03 kai onstar2mqtt[25750]: at node:internal/main/run_main_module:28:49
Mar 12 21:37:03 kai onstar2mqtt[25750]:
Mar 12 21:37:03 kai onstar2mqtt[25750]: Node.js v18.19.1
When starting onstar2mqtt I get a main function error. Any suggestion on how to start debugging this? Thanks.