meri-imperiumi / signalk-teltonika-rutx11

Teltonika RUT modem plugin for Signal K
2 stars 7 forks source link

"Cannot read properties of null" #95

Closed EdKok closed 1 year ago

EdKok commented 2 years ago

While using "modbus read" from the Linux CLI does work as expected, I get following error in SignalK log: TypeError: Cannot read properties of null (reading 'message') at /home/pi/.signalk/node_modules/@meri-imperiumi/signalk-teltonika-rutx11/index.js:169:32

Using a RUT950 with firmware RUT9XX_R_00.06.09.1 Plugin version 0.4.0

EdKok commented 2 years ago

Upgraded to RUT9_R_00.07.02.1 but issue remains.

EdKok commented 2 years ago

Updated npm "modbus-stream" to latest (= 8.5.1) but still not working.

anhorbc commented 2 years ago

Same here, but with a RUT240 with firmware R_00.07.02.2.

EdKok commented 2 years ago

Past weekend updated to RUT9_R_00.07.02.3 but still not working.

eriksnijder commented 2 years ago

Same error in logwith RUT950. Plugin status message gives correct operator and signal strength, but no data is going to Signal K

anas10 commented 1 year ago

Same error here with a RUT950 (node:18873) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'message' of null at /data/conf/signalk/node_modules/@meri-imperiumi/signalk-teltonika-rutx11/index.js:169:32

prein2 commented 1 year ago

Same problem with a RUTX50, firmware RUTX_R_00.07.04.1 Apr 24 11:53:34 (node:24089) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'message' of null at /data/conf/signalk/node_modules/@meri-imperiumi/signalk-teltonika-rutx11/index.js:169:32

bergie commented 1 year ago

This is pretty interesting, it is in the catch handler for when we get some error. But we're not getting an error object. I'll add a safety and then we can hopefully find out the real error.

bergie commented 1 year ago

Can somebody who had this issue test the index.js from git main and verify if the fix helps?

prein2 commented 1 year ago

The fix helps. Now getting the data in the databrowser. What is strange: in the dashboard the plugin status is 'unknown error', but all works fine now.

bergie commented 1 year ago

Yes, I’m unsure which of the data queries fail, but one does. Doesn’t happen on my X11 so hard to debug. Maybe you could share which SK paths you get from this plugin?

prein2 commented 1 year ago

These are the signal paths I get :

networking.lte.bars

networking.lte.connectionText

networking.lte.radioQuality

networking.lte.registerNetworkDisplay

networking.lte.rssi

networking.lte.usage.rx

networking.lte.usage.tx

networking.modem.temperature

networking.modem.uptime

I wonder which one is missing

Op 27 apr. 2023 om 21:26 heeft Henri Bergius @.***> het volgende geschreven:



Yes, I’m unsure which of the data queries fail, but one does. Doesn’t happen on my X11 so hard to debug. Maybe you could share which SK paths you get from this plugin?

— Reply to this email directly, view it on GitHubhttps://github.com/meri-imperiumi/signalk-teltonika-rutx11/issues/95#issuecomment-1526242019, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA7DUI5AHM64VRUROZOYPELXDLB6TANCNFSM5Y52UEPA. You are receiving this because you commented.Message ID: @.***>

eriksnijder commented 1 year ago

The issue is fixed for me. Thx!