question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fullmoooooncommented, Oct 29, 2021

Change

Encrypt=true

to

Encrypt=false

in your code

for example

sql.connect('Server=localhost,1433;Database=database;User Id=username;Password=password;Encrypt=false')
0reactions
IanChokScommented, Mar 23, 2021

I think I found the official explanation from RFC 6066, which states:

Currently, the only server names supported are DNS hostnames;
...
Literal IPv4 and IPv6 addresses are not permitted in "HostName".

  It is RECOMMENDED that clients include an extension of type
   "server_name" in the client hello whenever they locate a server by a
   supported name type.

   A server that receives a client hello containing the "server_name"
   extension MAY use the information contained in the extension to guide
   its selection of an appropriate certificate to return to the client,
   and/or other aspects of security policy.

Sorry you’re running into this issue, but I don’t think this is an error in tedious driver 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found