【发布时间】:2017-04-11 17:52:26
【问题描述】:
我正在尝试使用 https://github.com/contentful/contentful-export npm 包从我的空间之一导出数据。但是,当我按照 github 页面上的示例运行代码时,出现以下错误:
info Getting content from source space
Server error occured. Waiting for 3208 ms before retrying....
下面是我的代码:
var spaceExport = require('contentful-export')
var options = {
spaceId: '{XXX}',
managementToken: '{XXX}',
maxAllowedItems: 100,
errorLogFile: 'filename',
saveFile: false
}
spaceExport(options)
.then((output) => {
console.log('Your space data:', output)
})
.catch((err) => {
console.log('Oh no! Some errors occurred!', err)
})
【问题讨论】:
标签: javascript node.js npm export contentful