-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
TLSSocket._start seems never set #18303
Comments
If it helps, here is another scenario in which this issue can also be seen:
Error stack trace:
|
Can anyone help with this? From what I see, the It seems like the TLS module for Node Compat flat out doesn't work because of this, and it doesn't seem straightforward to update a typical Node library to use Deno's primary TLS support instead of the Node Compat support due to major differences between the APIs. I would appreciate any help on this, and would be willing to write code for it if someone can provide direction (e.g., what the |
I found the relevant Node code: https://github.com/nodejs/node/blob/main/lib/_tls_wrap.js#L952
It calls |
|
Any update on this? |
Waiting for this missing puzzle piece to use nodemailer 🥧 |
This also impacts ldapjs when using an |
Closes denoland#19983 Closes denoland#18303 Closes denoland#16681 Closes denoland#19978
Hey folks, were you able to try the fix available in Deno v1.36.1 for all the packages listed in the issue? I would appreciate some feedback here to know if you encounter any more problems. |
the mssql npm library and nodemailer are working now🥳 |
Hey folks, I'm getting socket hangup error when connecting to azure SQL db I used to get the same error before, but when I upgraded to 1.36.3 from 1.36.1 the issue happening here got fixed but now I'm getting socket hangup error. Edit: I tested my connection setting with mssql in pure node js (made a tiny script just to see if I'm tripping with my connection setting). Well the pure node js works fine, no issues, could query a table too. same setting, same latest mssql version (9.1.3 ). then I went and tested the code using deno in isolation, again same setting, same latest mssql version (9.1.3) and I get the same error as my original project. So its definetly something to do with the latest changes in deno. This is the stacktrace:
|
Hey hey, unfortunately I'm getting a similar error for nodemailer:
The offending parts in the code I marked here Now I haven't worked on this project for a while so I can't exclude user error but it seems pretty deep in the core code. |
Thanks for the reports; we'll look into that. |
@dehrhard could you share the reproduction code for the issue you are encountering? |
@bartlomieju It's pretty much as simple as it gets. Probably it's something stupid.
|
This still does not works. It is throwing different error now. |
@shivajivarma what error? Could you post it please? |
deno 1.37.0
|
Perhaps related? #20594 |
Do you have sample for this? I still got the same error as the issue creator with latest deno and latest npm sqlserver package 🤔 |
Still have this issue while using the imap npm library when setting tls to true with deno 1.40.2: error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Symbol(Deno.internal.rid)')
at TCP.#read (ext:deno_node/internal_binding/stream_wrap.ts:220:45)
at TCP.readStart (ext:deno_node/internal_binding/stream_wrap.ts:90:17)
at _tryReadStart (node:net:276:30)
at TLSSocket._read (node:net:856:7)
at TLSSocket.Readable.read (ext:deno_node/_stream.mjs:2999:16)
at TLSSocket.read (node:net:789:34)
at nReadingNextTick (ext:deno_node/_stream.mjs:3328:13)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:30:15)
at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
at eventLoopTick (ext:core/01_core.js:70:21) |
Describe the bug
https://github.com/denoland/deno_std/blob/bc345306e520e758e8af9b00144c393c9c066c52/node/_tls_wrap.ts#L373
Steps to Reproduce
Expected behavior
Should work.
Environment
The text was updated successfully, but these errors were encountered: