Node.js 汇流页面显示错误“;我们不能';t显示您的内容刷新页面并重试“;尝试使用myConfluence.content.id.get函数时
我尝试使用npm package@datafire/confluence通过confluence.content.id.put更新confluence内容({ 但在汇流页中获取错误。 “我们无法显示您的内容。请刷新页面并重试。如果问题仍然存在,请与Atlasian支持部门联系。”。 为什么汇流页面显示此错误 这是密码Node.js 汇流页面显示错误“;我们不能';t显示您的内容刷新页面并重试“;尝试使用myConfluence.content.id.get函数时,node.js,confluence-rest-api,npm-package,Node.js,Confluence Rest Api,Npm Package,我尝试使用npm package@datafire/confluence通过confluence.content.id.put更新confluence内容({ 但在汇流页中获取错误。 “我们无法显示您的内容。请刷新页面并重试。如果问题仍然存在,请与Atlasian支持部门联系。”。 为什么汇流页面显示此错误 这是密码 htmlStatics = "<html><a href=\"https://eps.atlassian.net/wiki/spaces/S
htmlStatics = "<html><a href=\"https://eps.atlassian.net/wiki/spaces/SE/pages/1049657802/UI+Backup+Reports\" data-linked-resource-id=\"1049657802\" data-linked-resource-version=\"1\" data-linked-resource-type=\"page\">UI Backup Reports</a><br> </br>" +
"<img src='https://eps.atlassian.net/wiki/download/attachments/1049657802"+imgdir+"1.png' id='reportImg' alt='Report screenshot' width='70%' height='90%'/> </html>";
try {
let myNewData = await myConfluence.content.id.put({
"id": recentContentID,
"body": {
"body": {
"storage": {
"value": htmlStatics,
"representation": "storage"
}
},
"version": {
"number": currentVersion + 1
},
"status": "current",
"title": "UI test Automation Report",
"type": "page"
}
}
, context)
console.log("The change storage data using the async function: \n" + JSON.stringify(myNewData));
} catch (error) {
console.log("Error got from change storage is: " + error);
}
htmlStatics=“
”+
" ";
试一试{
让myNewData=等待myConfluence.content.id.put({
“id”:recentContentID,
“正文”:{
“正文”:{
“储存”:{
“价值”:htmlStatics,
“表示”:“存储”
}
},
“版本”:{
“编号”:当前版本+1
},
“状态”:“当前”,
“标题”:“UI测试自动化报告”,
“类型”:“页面”
}
}
,上下文)
log(“使用异步函数更改存储数据:\n”+JSON.stringify(myNewData));
}捕获(错误){
log(“从更改存储中获取的错误为:“+错误”);
}
any help?????问题出在HTML代码中