Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation Warning for Socket.prototype._handle #56

Open
aaronsb opened this issue Mar 25, 2020 · 2 comments
Open

Deprecation Warning for Socket.prototype._handle #56

aaronsb opened this issue Mar 25, 2020 · 2 comments

Comments

@aaronsb
Copy link
Contributor

aaronsb commented Mar 25, 2020

Starting up container emits

DeprecationWarning: Socket.prototype._handle is deprecated

in log file.

Are UDP datagram calls private? In the future public calls may not function as intended.

https://nodejs.org/api/deprecations.html#deprecations_dep0112_dgram_private_apis

@danieletdg
Copy link

danieletdg commented Jul 6, 2020

Same here with multiple AC's Home Assistant Addon.
This is the YAML configuration:

mqtt:
broker_url: 'mqtt://my-broker'
username: my-user
password: my-psw
devices:
- hvac_host: ip_fist_hvac
mqtt_topic_prefix: home/greehvac
- hvac_host: ip_second_hvac
mqtt_topic_prefix: home/greehvac2

mqtt:
broker_url: 'mqtt://my-broker'
username: my-user
password: my-psw
devices:

  • hvac_host: ip_fist_hvac
    mqtt_topic_prefix: home/greehvac
  • hvac_host: ip_second_hvac
    mqtt_topic_prefix: home/greehvac2

This is the log:

0|HVAC_0 | [MQTT] Connecting to mqtt://my-broker as "my-user"...
0|HVAC_0 | [MQTT] Connected to broker
0|HVAC_0 | [UDP] Connected to device at ip_first_hvac
0|HVAC_0 | [UDP] New device registered: 1e20047a
0|HVAC_0 | [UDP] Device 1e20047a is bound!
/root/.pm2/logs/HVAC-1-error.log last 15 lines:
/root/.pm2/logs/HVAC-0-error.log last 15 lines:
0|HVAC_0 | (node:234) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated
/root/.pm2/logs/HVAC-1-out.log last 15 lines:
1|HVAC_1 | [MQTT] Connecting to mqtt://my-broker as "my-user"...
1|HVAC_1 | [MQTT] Connected to broker
1|HVAC_1 | [UDP] Connected to device at ip_second_hvac
1|HVAC_1 | (node:257) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated

so the second hvac is not in bound.

@cej0t4
Copy link

cej0t4 commented Aug 2, 2020

I have the same problem...

[TAILING] Tailing last 15 lines for [/HVAC_/] process (change the value with --lines option)
/root/.pm2/logs/HVAC-0-error.log last 15 lines:
/root/.pm2/logs/HVAC-0-out.log last 15 lines:
0|HVAC_0   | [MQTT] Connecting to mqtt://my-broker as "my-user"...
0|HVAC_0  | [MQTT] Connected to broker
0|HVAC_0  | [UDP] Connected to device at ip-gree-hvac
0|HVAC_0  | [UDP] New device registered: 1e72643c
0|HVAC_0  | (node:234) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants