SignalK / signalk-server

An implementation of a Signal K central server for boats.
http://signalk.org
Apache License 2.0
298 stars 150 forks source link

Tokensecurity error on reading properties #1708

Open pa1pdr opened 3 months ago

pa1pdr commented 3 months ago

On my windows 10 install SignalK v.2.6.2 I get the following error in the log:

TypeError: Cannot read properties of null (reading 'path') at c:\signalk\nodejs\node_modules\signalk-server\lib\tokensecurity.js:468:98 
at Array.find (<anonymous>) at c:\signalk\nodejs\node_modules\signalk-server\lib\tokensecurity.js:467:35 
at Array.find (<anonymous>) at strategy.shouldAllowWrite (c:\signalk\nodejs\node_modules\signalk-server\lib\tokensecurity.js:461:46) 
at processUpdates (c:\signalk\nodejs\node_modules\signalk-server\lib\interfaces\ws.js:366:31)

I've dropped all devices in 'Security', but that doesn't help. Reinstalled signalK: no dice.

tkurki commented 3 months ago

Disable security per https://github.com/SignalK/signalk-server/wiki/FAQ:-Frequently-Asked-Questions#how-to-disable-security-or-i-have-lost-my-admin-password-what-do-i-do and remove $HOME/.signalk/security.json and start over.

tkurki commented 3 months ago

Ah. I think something is creating invalid delta values with null in values array. No reconfiguration will fix the issue.

tkurki commented 2 months ago

Closing, as this is just an indication of broken input.

pa1pdr commented 2 months ago

Ah. I think something is creating invalid delta values with null in values array. No reconfiguration will fix the issue.

I'll scrutinise my SensESP providers. So null is not acceptable as a value and will prevent that from being sent. Any indicators on the culprits?

tkurki commented 2 months ago

Never seen this before.

tkurki commented 2 months ago

https://discord.com/channels/1170433917761892493/1232349882858209421

pa1pdr commented 2 months ago

Sorry: my registration to discord fails.. Do you have any alternate means to communicate?

tkurki commented 3 weeks ago

I just added a pointer to a similar problem, did not mean to redirect this conversation there.