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.

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

See original GitHub issue

If set

options: { encrypt: true } And send large data (83kb) to MS SQL then

at Socket.emit (events.js:205:15) at errorOrDestroy (internal/streams/destroy.js:107:12) at onwriteError (_stream_writable.js:438:5) at onwrite (_stream_writable.js:459:5) at internal/streams/destroy.js:49:7 at Socket._destroy (net.js:593:3) at Socket.destroy (internal/streams/destroy.js:37:8) at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:84:12) { code: 'EREQUEST', number: undefined, lineNumber: undefined, state: undefined, class: undefined, serverName: undefined, procName: undefined, originalError: Error: Connection lost - write EPIPE code: 'EREQUEST', number: undefined, lineNumber: undefined, state: undefined, class: undefined, serverName: undefined, procName: undefined, originalError: Error: Connection lost - write EPIPE

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

Software versions

  • NodeJS: 12.4.0
  • node-mssql: 5.1.0
  • SQL Server: 2016

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
arkasaha2commented, Oct 30, 2019

I also faced the same issue. But it was resolved when I downgraded my node version to 10 and my same code started working. There has to be some issue with mssql with node 12.

0reactions
willmorgancommented, Mar 6, 2020

This is a universal issue with cloud DB service providers with SSL connections, and not a problem with this library.

Would recommend investigating configuration options on the cloud DB service provider.

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 >
[NodeJS] IP address is not permitted by RFC 6066 - TechieDan
Time to look more into NodeJS. It seems that if you hit the TLS ServerName to an IP address is not permitted by...
Read more >
Setting the TLS ServerName to an IP address is not permitted ...
DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version....
Read more >
Setting the TLS ServerName to an IP address ... - Elastic Discuss
Node.js process-warning detected: DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066.
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 >

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