[DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066
See original GitHub issueI am using tedious 6.6.2 in one of my projects, it is a GCP cloud function environment, with nodejs 10, and i am getting a warning related to tedious:
"severity":"ERROR","message":"(node:6720) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.\n at Object.connect (_tls_wrap.js:1619:15)\n at MessageIO.startTls
Also when i do a node --trace-deprecation it shows another warning: tedious deprecated The default value for config.options.enableArithAbortwill change fromfalsetotruein the next major version oftedious. Set the value to trueorfalse explicitly to silence this message.
What can/should i do about these warnings?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
node:10212[DEP0123]DeprecationWarning:Setting the TLS ...
However I get a message as "(node:10212) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066....
Read more >Setting the TLS ServerName to an IP address is not ... - GitHub
We connect to the database using an IP address. Setting the TLS ServerName to an IP address is not permitted by RFC 6066....
Read more >[NodeJS] IP address is not permitted by RFC 6066 - TechieDan
[DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future ......
Read more >node:10212[DEP0123]DeprecationWarning:Setting the TLS ...
Coding example for the question node:10212[DEP0123]DeprecationWarning:Setting the TLS ServerName to an IPaddress is not permitted by RFC 6066.
Read more >Setting the TLS ServerName to an IP address ... - Elastic Discuss
(node:48280) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Change
to
in your code
for example
I think I found the official explanation from RFC 6066, which states:
Sorry you’re running into this issue, but I don’t think this is an error in
tediousdriver as I’ve also seen other people post this same error warning when connecting to other databases like MongoDB. I’m not sure how to solve this issue, but I hope I provided some helpful links for further guidance.Closing this for now!