2012-03-06 68 views
1

我正在使用节点0.6.10版本,并且在将文件上传到亚马逊S3时出现错误。 我正在使用请求(@ 2.9.153)的knox(@ 0.0.9)模块。套接字在node.js中挂起

[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.<anonymous> (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) 

另外,我检查,我有http.js在以下模块和他们都没有的setTimeout(做了一个grep的)。

./express/lib/http.js 
./express/node_modules/connect/lib/http.js 
./socket.io/lib/transports/http.js 

我发现在同一个问题上有几个帖子,看起来问题是在一些旧版本中修复的。我使用任何旧版本? 这里是我的完整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] 
+0

尝试加载您的'node_modules'目录并再次运行'npm install'。 – jergason 2012-03-06 17:45:54

+0

发现问题。它是由于https://github.com/LearnBoost/knox/issues/56中提到的问题而发生的。 Windows路径问题不正确,这就是它在内部抛出403的原因。 – user644745 2012-03-06 18:15:15

回答

0

关闭线程,有了答案,

发现了这个问题。这是由于github.com/LearnBoost/knox/issues/56中提到的问题。 Windows路径问题不正确,这就是它在内部抛出403的原因。