Hi there.
I’ve cloned a space and there is an issue with assets.
This is the script:
let fileName = `export_mm7bfysjbulb_${moment().format('x')}.json`
//Export
spaceExport({
spaceId: "mm7bfysjbulb",
managementToken: accessToken,
useVerboseRenderer: true,
errorLogFile: 'error.json',
saveFile: false,
includeDrafts: true
}).then(output => {
fs.writeFileSync(
path.join(__dirname, '../exports', fileName),
JSON.stringify(output)
)
})
//Import
return spaceImport({
spaceId: "niuyvdh3hcjp",
managementToken: accessToken,
contentFile: path.join(__dirname, '../exports', fileName),
contentModelOnly: false,
skipLocales: false,
errorLogFile: 'error.json'
})
All content types, entries, roles, etc etc are imported.
But when I open an asset in the web app, it’s still in “processing” state:
The asset entry has “strange” data:
"fields": {
"title": {
"it-IT": "1000x1000"
},
"file": {
"it-IT": {
"upload": "https://images.contentful.com/mm7bfysjbulb/3hFuQ51356wwkMouiqwKIc/bb3a43e176a27bc87a61f0652dc96648/1000x1000.jpg",
"fileName": "1000x1000.jpg",
"contentType": "image/jpeg"
}
}
}
where mm7bfysjbulb is the source spaceId. The problem is only with draft assets.
The two spaces have the same default locale.