Azure Functions serverless error



  • Hi,

    I followed this guide: https://jsreport.net/learn/azure-functions-serverless
    0_1657037539419_upload-e56fe022-4c6c-402c-9d03-04fcf6a47493

    I get the following error:
    Error: ENOENT: no such file or directory, mkdir 'logs'
    at Object.mkdirSync (node:fs:1349:3)
    at File._createLogDirIfNotExist (/home/site/wwwroot/node_modules/winston/lib/winston/transports/file.js:691:10)
    at new File (/home/site/wwwroot/node_modules/winston/lib/winston/transports/file.js:92:28)
    at configureLogger (/home/site/wwwroot/node_modules/@jsreport/jsreport-core/lib/main/logger.js:169:31)
    at MainReporter.extensionsLoad (/home/site/wwwroot/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:102:5)
    at async MainReporter.init (/home/site/wwwroot/node_modules/@jsreport/jsreport-core/lib/main/reporter.js:175:7)
    at async module.exports (/home/site/wwwroot/HttpTrigger1/index.js:16:9)



  • I've tried both jsreport versions 3.4.1 (in the starterkit package.json) and the latest 3.6.1 and both work well without error.

    Are you sure you followed the guide with starterkit? Especially this config needs to be in your config file
    https://github.com/jsreport/jsreport-azure-functions-starter-kit/blob/master/prod.config.json#L12


Log in to reply
 

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