Generate PDF Reports Via API Error : TypeError: Cannot read properties of null (reading 'dictionary')



  • Hello

    • We have working solution that is still on ver 3.8

    • We have tried on a server with physical install and as well running the docker container deployment of the latest versions of JS Reports, and if we run the report on the JSREport web interface it is rendering in HTML, PDF and Excel

    How ever if we call the report via the API , we get the error below and we do not know how to resolve this.
    We have even for testing changed the template to be just
    <div>Hello World</div> and still we are getting this issue.

    What can we do to get this resloved?

    Regards
    Thomas

    pdf-utils postproces start
    warn
    +3
    Error when processing render request 2
    (because) error while executing pdf-utils operations
    (because) cannot read properties of null (reading 'dictionary')
    TypeError: Cannot read properties of null (reading 'dictionary')
    at doc.encrypt (/app/node_modules/@jsreport/pdfjs/lib/mixins/encrypt/encrypt.js:27:54)
    at Object.postprocess (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/pdfManipulator.js:161:13)
    at module.exports (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/pdfProcessing.js:132:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async AsyncFunction.<anonymous> (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/worker.js:179:21)
    at async ListenerCollection.fire (/app/node_modules/@jsreport/jsreport-core/lib/shared/listenerCollection.js:157:21)
    at async afterRender (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:103:5)
    at async WorkerReporter._render (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:148:7)
    at async /app/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:179:19
    at async Domain.<anonymous> (/app/node_modules/@jsreport/advanced-workers/lib/workerHandler.js:141:19)
    wrapped by:
    Error: Error while executing pdf-utils operations
    (because) cannot read properties of null (reading 'dictionary')
    at module.exports (/app/node_modules/@jsreport/jsreport-core/lib/shared/createError.js:10:13)
    at WorkerReporter.createError (/app/node_modules/@jsreport/jsreport-core/lib/shared/reporter.js:49:12)
    at AsyncFunction.<anonymous> (/app/node_modules/@jsreport/jsreport-pdf-utils/lib/worker.js:196:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ListenerCollection.fire (/app/node_modules/@jsreport/jsreport-core/lib/shared/listenerCollection.js:157:21)
    at async afterRender (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:103:5)
    at async WorkerReporter._render (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:148:7)
    at async /app/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:179:19
    at async Domain.<anonymous> (/app/node_modules/@jsreport/advanced-workers/lib/workerHandler.js:141:19)
    warn
    +0
    Rendering request 2 finished with error in 2126 ms



  • Don't you have pdf password enabled in the pdf utils somewhere?
    0_1690460321029_upload-c302ec1c-30f9-473b-88c7-697a584da2a1

    This is disabled when running in studio so it behaves differently when running through API.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.