导入邮差集合失败



试图导入Postman集合,在警报对话框中收到此错误:

Import Failed
TypeError: null is not an object (evaluating 'postmanBodyData.length')

然后控制台中的这个:

JS Exception Line 54. TypeError: null is not an object (evaluating 'postmanBodyData.length')

这是一个导入失败的集合的示例。

{
"id": "5eb54264-f906-b6d7-9ee4-d045875c8ad4",
"name": "SO Test",
"order": [
    "ee9c4b31-f6b3-0799-5d9d-298d8257d6d0",
    "513b4473-f1c3-469e-ce67-edaf33faf2d0"
],
"timestamp": 1448497158415,
"requests": [
    {
        "id": "513b4473-f1c3-469e-ce67-edaf33faf2d0",
        "url": "http://stackoverflow.com/questions/33901145/importing-postman-collection-fails?noredirect=1#comment55564842_33901145",
        "method": "GET",
        "headers": "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8nUpgrade-Insecure-Requests: 1nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.69 Safari/537.36nAccept-Encoding: gzip, deflate, sdchnAccept-Language: en-US,en;q=0.8nCookie: prov=41dcce2f-3878-4f81-b102-86ced2fc0edd; __qca=P0-107192378-1422497046148; gauthed=1; _ga=GA1.2.828174835.1422497046; __cfduid=df57f13c8f66daf4cca857b9bde72d0981447728327n",
        "data": null,
        "dataMode": "params",
        "version": 2,
        "name": "http://stackoverflow.com/questions/33901145/importing-postman-collection-fails?noredirect=1#comment55564842_33901145",
        "description": "",
        "descriptionFormat": "html",
        "collectionId": "5eb54264-f906-b6d7-9ee4-d045875c8ad4"
    },
    {
        "id": "ee9c4b31-f6b3-0799-5d9d-298d8257d6d0",
        "url": "http://stackoverflow.com/posts/33901145/ivc/2e31?_=1448497117271",
        "method": "GET",
        "headers": "Accept: */*nX-Requested-With: XMLHttpRequestnUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.69 Safari/537.36nReferer: http://stackoverflow.com/questions/33901145/importing-postman-collection-fails?noredirect=1nAccept-Encoding: gzip, deflate, sdchnAccept-Language: en-US,en;q=0.8nCookie: prov=41dcce2f-3878-4f81-b102-86ced2fc0edd; __qca=P0-107192378-1422497046148; gauthed=1; _ga=GA1.2.828174835.1422497046; __cfduid=df57f13c8f66daf4cca857b9bde72d0981447728327n",
        "data": null,
        "dataMode": "params",
        "version": 2,
        "name": "http://stackoverflow.com/posts/33901145/ivc/2e31?_=1448497117271",
        "description": "",
        "descriptionFormat": "html",
        "collectionId": "5eb54264-f906-b6d7-9ee4-d045875c8ad4"
    }
]

}

此错误是由于错误地传递了一个空体:

"data": null, "dataMode": "params", 它已在v11.2 中修复

相关内容

  • 没有找到相关文章

最新更新