2015-12-28 43 views
3

對特定服務器的所有請求均超時且出現錯誤ETIMEDOUT。Postman Newman - 在郵遞員中工作的請求在Newman中失敗,ETIMEDOUT

[...]$ newman -c Test.json.postman_collection 

Iteration 1 of 1 
RequestError: [223f1c83-1bb6-b40c-acc7-d90a2dd4e4ce] 'HB Heart Beat' terminated. Complete error: 
Error: ETIMEDOUT 
at null._onTimeout (~/.nvm/versions/node/v0.12.9/lib/node_modules/newman/node_modules/request/request.js:808:15) 
at Timer.listOnTimeout (timers.js:119:15) 

該測試在郵差和收集亞軍工作。我可以用bash中的curl命中目標服務器。我沒有足夠的經驗去深入挖掘紐曼的錯誤,並且不勝感激。

實際要求很簡單。我已經剝離出來的任何環境變量,看看我能得到它的工作:

POST HTTP/1.1 
Host: http://<IP ADDRESS GOES HERE> 
Content-Length: 161 
Cache-Control: no-cache 
Postman-Token: 0e650324-356e-0a21-6ee1-2d7731a3f28c 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<HB timestamp="123456789" xmlns="http://google.com"/> 

此相同的行爲發生在紐曼的頂級版和測試版節點4.0+。 There is a bug mentioned in the newman git repo。我認爲這可能與它有關,但其他請求正在處理,所以我想確定。

什麼?

回答

2

此特定行爲是由郵差和紐曼之間的內容長度標籤的差異造成的。郵差使用大寫的'內容長度',而紐曼的節點包使用小寫'內容長度'。我正在與之交談的過程不認可小寫字體。

+0

這似乎是固定在最新版本的紐曼。 – RangerDan

相關問題