Sunoo / homebridge-smtp-motion

Converts SMTP messages into HTTP motion alerts that homebridge-camera-ffmpeg understands
BSD 2-Clause "Simplified" License
9 stars 3 forks source link

Incompatible with node 18.x #173

Closed Tomcraft1980 closed 1 year ago

Tomcraft1980 commented 1 year ago

This plugin seems to be incompatible with node 18.x

[20/04/2023, 23:13:13] Error: connect ECONNREFUSED 127.0.0.1:8080 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) [20/04/2023, 23:13:13] Got SIGTERM, shutting down Homebridge... [20/04/2023, 23:13:18] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [20/04/2023, 23:13:23] [HB Supervisor] Restarting Homebridge... [20/04/2023, 23:13:23] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution

I confirmed this installing a fresh version of the Homebridge SD card image "Raspbian-Homebridge-v1.0.39.zip" and only installed the plugin "homebridge-smtp-motion". Upon motion detection or sending a test Mail the homebridge service is restarting instantly.

Sunoo commented 1 year ago

I haven’t updated my test machine to Node 18 yet, will try to do that this weekend and see what’s going on.

Tomcraft1980 commented 1 year ago

Awesome, thanks!

massicottem commented 1 year ago

It might be related to #161. Updating smtp-server to the version 3.11.0 (the latest is 3.12.0 now) was the only thing I did on my side to fix the problem on Node 18.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.