error socket connection timeout while uploading image in cloudinary #48028
Replies: 9 comments 53 replies
-
Converted to a discussion. What you're seeing is an intentional change, not a bug. Consult the release notes for more details. |
Beta Was this translation helpful? Give feedback.
-
Please see #47644 (comment) for a potential workaround. |
Beta Was this translation helpful? Give feedback.
-
So I have this issue in a script that fetches all CSS assets in parallel from GitHub via undici or experimental fetch. I can not reliably reproduce the error in a standalone script yet, but below are the involved DNS records and they all connect on port 443. I do not have IPv6 connectivity, all my local interfaces with IPv6 have link-local addresses only, so it should be using IPv4 only. Adding
|
Beta Was this translation helpful? Give feedback.
-
Hmm, I think the ideal course of action would be:
The only downside here is that waiting on the 2 DNS results will induce additional delay in the process, but I guess with a small "cache" you could make subsequent connection attempts use the protocol that has succeeded previously because it's highly likely that connectivity has not changed. Cache entries should expiry after a reasonable amount of time, maybe 10 minutes. |
Beta Was this translation helpful? Give feedback.
-
you can include the NODE_OPTIONS environment variable in the script command to avoid this error. For example: "scripts": { |
Beta Was this translation helpful? Give feedback.
-
Please use transports: ["websocket"]. But you cannot send extra headers if you use transports websocket on client side. You need to send extra headers inside query if you use "websocket" trasnports. I guess this will solve your problem. |
Beta Was this translation helpful? Give feedback.
-
This should have been fixed once for all in #51045. |
Beta Was this translation helpful? Give feedback.
-
Upgrade your Node version to latest it will solve . I was also facing same issue then i upgrade my node from 20.0 to 21.0 which is current version then this error was solved. Just a suggestion try to upload buffer raw data of image rather than just uploading its path name
|
Beta Was this translation helpful? Give feedback.
-
{ I am getting this error any idea how to get it fixed? The function I am using is mentioned below const uploadOnCloudinary = async (localFilePath) => {
}; |
Beta Was this translation helpful? Give feedback.
-
Version
20.1.0
Platform
Microsoft Windows NT 10.0.22621.0 x64
Subsystem
No response
What steps will reproduce the bug?
In v20.1.0, I got
ERR_SOCKET_CONNECTION_TIMEOUT
while uploading images in Cloudinary. Then I switched back to v16.14.0, it works fine. Below is the function I was using:How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions