内容导出服务器错误

Contentful export server error

我正在尝试使用 https://github.com/contentful/contentful-export npm 包从我的一个 contentful 空间中导出数据。但是,当我 运行 我的代码按照 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)
})

如消息中所述,该工具将等待 3208 毫秒,然后重试,因为执行请求时出错。这是为了避免破坏导出或导入。重试几次后,如果无法继续,该工具最终将失败。 但是,我认为在这种情况下您可能提供了错误的管理令牌。 请检查您的凭据并重试。

最好的, 哈立德