2012-03-06 71 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的原因。