2015-12-28 33 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

相关问题