【问题标题】:Contentful export server error内容导出服务器错误
【发布时间】: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


    【解决方案1】:

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

    最好, 哈立德

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-23
    • 2014-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多