Tuesday 11 April 2017

Contentful export server error

I am trying to export the data from one of my spaces within contentful using the https://github.com/contentful/contentful-export npm package. However when I run my code, following the example on the github page, I get the following error:

info Getting content from source space
Server error occured. Waiting for 3208 ms before retrying....

Below is my code:

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)
})



via jord

No comments:

Post a Comment