reload preview bug
We have new upload
status for both Source & Converted files,
when I click Reload preview
i get the following error
2021-12-10T11:02:26.721Z - error: cheerio.load() expects a string
{
error: {
message: 'cheerio.load() expects a string',
locations: [ { line: 2, column: 3 } ],
path: [ 'reconvertBookComponent' ],
extensions: {
code: 'INTERNAL_SERVER_ERROR',
exception: {
stacktrace: [
'Error: cheerio.load() expects a string',
' at Object.load (/home/danjela/ncbi_bookshelf/ncbi/node_modules/cheerio/lib/load.js:24:15)',
' at transformHTMLToXML (/home/danjela/ncbi_bookshelf/ncbi/server/services/xmlBaseModel/builder/transform.js:5:38)',
' at Abstract.content (/home/danjela/ncbi_bookshelf/ncbi/server/services/xmlBaseModel/builder/abstract.js:30:37)',
' at Abstract.build (/home/danjela/ncbi_bookshelf/ncbi/server/services/xmlBaseModel/builder/xmlBuilder.js:26:22)',
' at /home/danjela/ncbi_bookshelf/ncbi/server/services/xmlBaseModel/builder/xmlBuilder.js:29:48',
' at Array.map (<anonymous>)',
.....
I was debugging and the problem maybe is in: server/services/xmlBaseModel/builder/abstract.js