我正在尝试使用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)
})