Skip to main content
Participant
September 2, 2023
Answered

pdfservices-node-sdk with Nodejs executed on Internet environnement

  • September 2, 2023
  • 1 reply
  • 605 views

Hi 🙂

I use API Adobe to generate PDF from docx.

In local environnement it is working fine.

 

await documentMergeOperation
  .execute(executionContext)

 

When I deploy the nodejs application on the Internet, I have this error

2023-09-02 11:42:22 error [undefined] SID[undefined] unhandledRejection: process.send is not a function
TypeError: process.send is not a function
    at Object.send (/home/jivciei/adusuki/node_modules/log4js/lib/clustering.js:98:15)
    at Logger._log (/home/jivciei/adusuki/node_modules/log4js/lib/logger.js:106:16)
    at Logger.log (/home/jivciei/adusuki/node_modules/log4js/lib/logger.js:89:12)
    at Logger.<computed> [as info] (/home/jivciei/adusuki/node_modules/log4js/lib/logger.js:140:10)
    at DocumentMergeOperation.execute (/home/jivciei/adusuki/node_modules/@adobe/pdfservices-node-sdk/src/operation/document-merge-operation.js:136:10)
    at post_paiement_virement_save (/home/jivciei/adusuki/controllers/adhesionController.js:1384:4)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

 

 Do you know if we can use the adobe API on an application deloyed on Internet ?

Did you experienced same problem ?

 

Thank you for your help

 

Julie

    This topic has been closed for replies.
    Correct answer Julie Chaumard

    I finally found the issue.

    It was caused by the lines with logger.info('xxxxx') on the node_modules files of the @adobe/pdfservices-node-sdk package.
    I commented them all, and now it is working fine.

    Adobe should review this.

     

    1 reply

    Julie ChaumardAuthorCorrect answer
    Participant
    September 2, 2023

    I finally found the issue.

    It was caused by the lines with logger.info('xxxxx') on the node_modules files of the @adobe/pdfservices-node-sdk package.
    I commented them all, and now it is working fine.

    Adobe should review this.