<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Saillogger reporting issue with ais name in logs]]></title><description><![CDATA[<p dir="auto">Saillogger was logging errors on ship names, probably because someone has a misconfigured AIS. When the error was encountered, it would not send any AIS data. Here is the log snippet:</p>
<pre><code>Sep 13 21:36:27 2026-09-13T21:36:27.751Z signalk-saillogger Updating AIS vessel 367302540 details 
Sep 13 21:36:27 Uncaught exception: TypeError: Cannot read properties of undefined (reading 'name') at refreshAisData (/home/node/.signalk/node_modules/signalk-saillogger/index.js:448:55) at sendAisTargets (/home/node/.signalk/node_modules/signalk-saillogger/index.js:676:5) at Timeout._onTimeout (/home/node/.signalk/node_modules/signalk-saillogger/index.js:199:7) at listOnTimeout (node:internal/timers:685:17) at processTimers (node:internal/timers:618:7) 
Sep 13 21:36:27 TypeError: Cannot read properties of undefined (reading 'name') at refreshAisData (/home/node/.signalk/node_modules/signalk-saillogger/index.js:448:55) at sendAisTargets (/home/node/.signalk/node_modules/signalk-saillogger/index.js:676:5) at Timeout._onTimeout (/home/node/.signalk/node_modules/signalk-saillogger/index.js:199:7) at listOnTimeout (node:internal/timers:685:17) at processTimers (node:internal/timers:618:7)
</code></pre>
<p dir="auto">I fixed the issue (I think) with this code snippet:</p>
<pre><code>cd ~/.signalk/node_modules/signalk-saillogger
cp index.js index.js.bak
sed -i "s/aisShipType?\.value\.name/aisShipType?.value?.name/; s/aisShipType?\.value\.id/aisShipType?.value?.id/" index.js
grep -n "aisShipType" index.js
'
</code></pre>
<p dir="auto">It would be nice if this were merged into the source so my fix persists, or tell me I've done something terrible?</p>
]]></description><link>https://community.saillogger.com/topic/186/saillogger-reporting-issue-with-ais-name-in-logs</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 04:56:38 GMT</lastBuildDate><atom:link href="https://community.saillogger.com/topic/186.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Sep 2026 21:46:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Saillogger reporting issue with ais name in logs on Sun, 13 Sep 2026 23:20:28 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/jimholthaus" aria-label="Profile: jimholthaus">@<bdi>jimholthaus</bdi></a> , good catch and good fix! We just published a v5.3.2 of the plugin that fixes this.</p>
<p dir="auto">Thanks for the report.</p>
]]></description><link>https://community.saillogger.com/post/708</link><guid isPermaLink="true">https://community.saillogger.com/post/708</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Sun, 13 Sep 2026 23:20:28 GMT</pubDate></item></channel></rss>