socket hang up in node.js
Problem
I am using node 0.6.10 version and I got the Error today while uploading a file to amazon S3. I am using knox(@0.0.9) module with request(@2.9.153).
[2012-03-06 22:33:34.251] [ERROR] xyxyxyxy- Error uploading to S3: Error: soc
ket hang up
at createHangUpError (http.js:1104:15)
at Socket. (http.js:1207:27)
at Socket.emit (events.js:88:20)
at Array.0 (net.js:320:10)
at EventEmitter._tickCallback (node.js:192:40)
Also, I checked that I have http.js in the following modules and none of them have setTimeout (did a grep).
./express/lib/http.js
./express/node_modules/connect/lib/http.js
./socket.io/lib/transports/http.js
I found that there are couple of posts on the same issue, and looks like the issue was fixed in some older version. Am I using any older version ? Here is my complete node_modules:
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└── [email protected]
Solution
Closing the thread, with the answer,
found the problem. it was happening due to the issue mentioned in github.com/LearnBoost/knox/issues/56. Windows path problem was incorrect and that's why it was throwing 403 internally.
Discussion
View additional discussion.