我在从邮递员导出集合时遇到问题。对于一项工作,我需要导出到集合(第一个有 182 个请求,第二个有 75 个请求),对于第一个,导出没有问题,对于第二个,我尝试导出但它返回此响应:unable to export this entity, please open dev tools
。所以我这样做了。
但我真的不知道需要看什么才能修复这个错误。
我正在使用 ubuntu 16.04 LTS 和 postman 7.2.0 我曾在另一台使用 windows 10 版本的电脑上尝试过:1903
请帮我 :)
谢谢
在 ubuntu 上,devtools 返回以下内容:
Error while exporting an entity
Object {
id: "f7380d3b-d44c-4331-bc66-35afce320496"
}
Object {
type: "collection",
inputVersion: "1.0.0",
outputVersion: "2.1.0"
}
inputVersion: "1.0.0"
outputVersion: "2.1.0"
type:
"collection"__proto__ :
Objectconstructor: function Object()
hasOwnProperty: function hasOwnProperty()
isPrototypeOf: function isPrototypeOf()
propertyIsEnumerable: function propertyIsEnumerable()
toLocaleString: function toLocaleString()
toString: function toString()
valueOf: function valueOf()
__defineGetter__: function __defineGetter__()
__defineSetter__: function __defineSetter__()
__lookupGetter__: function __lookupGetter__()
__lookupSetter__: function __lookupSetter__()
get __proto__: function __proto__()
set __proto__: function __proto__()
TypeError: Cannot read property 'dataMode' of null
at _sanitizeRequestBody (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:427886:14)
at requests.(anonymous function).responses._.map.response (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:427961:11)
at arrayMap (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:792:23)
at Function.map (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:9707:14)
at _transformToV1 (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:427959:33)
at Object.transform (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:428014:18)
at __webpack_exports__.a.Promise.resolve.then.then.then.then.then.then.sanitizedEntity (file:///snap/postman/85/usr/share/Postman/resources/app/js/vendor-shared.js:303105:24)
at <anonymous>
(anonymous) @ vendor-shared.js:608126
__WEBPACK_IMPORTED_MODULE_1__modules_export_index__.a.exportSingle.then.then.then.then.then.catch.err @ postman-converters.js:8818
答案1
导出集合时出错:“无法读取 _sanitizeRequestBody 中为 null 的属性‘dataMode’”
列出的解决方法如下:
下载最新的 alpha 版本:https://www.getpostman.com/downloads/canary
使用 Postman API 获取集合的内容:https://docs.api.getpostman.com/?version=latest#647806d5-492a-eded-1df6-6529b5dc685c