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

(node:6812) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event. (Use node --trace-warnings ... to show where the warning was created) #51590

Closed
slaetthult opened this issue Jan 29, 2024 · 3 comments

Comments

@slaetthult
Copy link

Version

node v20.11.0 (npm v10.2.4)

Platform

Darwin Marvins-MBP.localdomain 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64

Subsystem

No response

What steps will reproduce the bug?

Astro 4 npm run dev

How often does it reproduce? Is there a required condition?

Every time npm run dev

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

(node:6812) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event. (Use node --trace-warnings ... to show where the warning was created)

Additional information

No response

@marco-ippolito
Copy link
Member

marco-ippolito commented Jan 29, 2024

@slaetthult hello, thanks for reporting the issue, you can use node --trace-warnings to check where the warning is generated.
If you think this is a bug within Node.js can you provide a repro?
Otherwise I think you should open an issue on Astro rather than on Node.js @ematipico

@slaetthult
Copy link
Author

slaetthult commented Jan 29, 2024

@marco-ippolito when i use node --trace-warnings i get the following:
(node:26244) Warning: An error event has already been emitted on the socket. Please use the destroy method on the socket while handling a 'clientError' event.
at warnUnclosedSocket (node:_http_server:866:11)
at Socket.socketOnError (node:_http_server:880:5)
at onParserExecuteCommon (node:_http_server:915:19)
at onParserExecute (node:_http_server:836:3)

@marco-ippolito
Copy link
Member

this warning has been removed in #51204, the fix will be released in a future version

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

2 participants