Bonjour,
j’avais parlé de mon problème de génération pdf de document sous modèle Dokiel sous un autre post avec un autre sujet. N’ayant pas trouvé de solution encore pour l’instant je rédige un nouveau post dédié.
Depuis la mise à jour de ma version de SCENARIchain-server en 6.3.13 la génération de PDF des ateliers sous modèle Dokiel 5 ou 6 ne fonctionne plus.
Sous ceux avec Dokiel 6 aucune erreur n’apparait dans les logs mais le PDF n’est pas généré, sous ceux avec Dokiel 5 le PDF n’est pas généré non plus mais une erreur s’affiche bien:
Une erreur est survenue lors de la génération.
- (node:1275139) UnhandledPromiseRejectionWarning: Error: Protocol error (Page.enable): Target closed.
- (node:1275139) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
- (node:1275139) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
— Admin details —
<?xml version="1.0" encoding="UTF-8"?><start t="07/03/25 14:02:02"/>
<l t="Error" d="07/03/25 14:02:04">
<message type="Error" ts="1741352524313" appCtx="chain" user="xxx.xxxx" thread="ForkJoinPool-1-worker-42" desc="(node:1275139) UnhandledPromiseRejectionWarning: Error: Protocol error (Page.enable): Target closed.">
<details>(node:1275139) UnhandledPromiseRejectionWarning: Error: Protocol error (Page.enable): Target closed.
at Promise (/opt/postscriptum/cli/node_modules/puppeteer/lib/Connection.js:183:56)
at new Promise (<anonymous>)
at CDPSession.send (/opt/postscriptum/cli/node_modules/puppeteer/lib/Connection.js:182:12)
at Function.create (/opt/postscriptum/cli/node_modules/puppeteer/lib/Page.js:47:18)
at _pagePromise._sessionFactory.then.client (/opt/postscriptum/cli/node_modules/puppeteer/lib/Target.js:71:32)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
– ASYNC –
at Target.<anonymous> (/opt/postscriptum/cli/node_modules/puppeteer/lib/helper.js:108:27)
at Browser._createPageInContext (/opt/postscriptum/cli/node_modules/puppeteer/lib/Browser.js:177:31)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
– ASYNC –
at Browser.<anonymous> (/opt/postscriptum/cli/node_modules/puppeteer/lib/helper.js:108:27)
at Target.initialized (/opt/postscriptum/cli/dist/target.js:22:43)
at new Target (/opt/postscriptum/cli/dist/target.js:67:11)
at /opt/postscriptum/cli/dist/cli.js:121:20
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
— Context —
reg: {« envKeys »:[« itemType »,« securityCtx »],« parent »:{« envKeys »:[« wsp »,« securityCtx »,« uiRoot »,« place »,« infoBroker »,« wedSearchCoord »,« histoEditMgr »],« parent »:{« envKeys »:[« resolver »,« universe »,« securityCtx »],« parent »:{« envKeys »:[« resolver »,« noAuthentication »,« remoteAuthentications »,« embeddedAuthentication »,« universe »,« securityCtx »]}}}}
uiContext: undefined
wsp: undefined
shortDesc: {« rspUsrs »:,« lcDt »:-1,« srcUri »:« /guide.pub »,« srcSt »:1,« srcDt »:1741352117875,« srcRi »:511,« srcRoles »:[« main:admin »],« srcId »:« id:JGFU3or44PKvFT6EFCcYrQ »,« srcStamp »:« vDu1bwohBNasnaIoGlaxgJH6EfDVLdu5/ItqUFPzHPI= »,« srcUser »:« xxx.xxxx »,« rspSt »:-1,« lcSt »:« »,« itSt »:1,« itSgn »:« @dk_guideRoot#Xml#Map »,« itModel »:« dk_guideRoot »}
pubNode: {« ch »:[{},{},{}]}
genInfo: {« codeGenStack »:« guideP »,« title »:« Génération PDF du guide »,« status »:« warning »,« lastGen »:1741352524311,« uriPub »:« /JGDU3or44PKvFT6EFCcYrQ/BQHTM0/6MIKTD/P7RRQG/NM7P0V/VJ/guideP/ »,« uriTraces »:« /JGDU3or44PKvFT6EFCcYrQ/BQHTM0/6MIKTD/P7RRQG/NM7P0V/VJ/guideP/meta/~Traces.xml »,« mimeDownload »:« application/pdf »,« skin »:« default »,« user »:« xxx.xxxntier »,« storedProps »:{« resolution@stored »:« high »},« skins »:[{« code »:« ~DokielLagoon5 »,« title »:« Habillage Lagoon »,« hasIllus »:true},{« code »:« default »,« title »:« Titania »}]}
genProps: undefined
customDestPath: undefined
cidInfo: null
Auriez vous des pistes à me donner pour résoudre cela? est il possible d’augmenter le niveau de log?
Merci