2023-04-21 11:51:35.988 +0200 [debug] (configs.js) loaded default configs as "{"updates":{"manifest_url":"https://cdn.freshdev.io/assets/fdk/updates.json","period":24},"log":{"level":"info"},"javascript":{"ecma_version":2020},"request":{"timeout":5000}}" 2023-04-21 11:51:35.991 +0200 [debug] (file.js) Error while requiring C:\Users\michele.mangiaterra/.fdk/configs.json: Cannot find module 'C:\Users\michele.mangiaterra/.fdk/configs.json' Require stack: - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\utils\file.js - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\configs.js - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\logger.js - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\index.js 2023-04-21 11:51:35.991 +0200 [debug] (configs.js) loaded global configs as "{}" 2023-04-21 11:51:35.991 +0200 [debug] (file.js) Error while requiring C:\Users\michele.mangiaterra\Desktop\workspaces\Infrastruttura\test-integration/.fdk/configs.json: Cannot find module 'C:\Users\michele.mangiaterra\Desktop\workspaces\Infrastruttura\test-integration/.fdk/configs.json' Require stack: - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\utils\file.js - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\configs.js - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\logger.js - C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\index.js 2023-04-21 11:51:35.992 +0200 [debug] (configs.js) loaded local configs as "{}" 2023-04-21 11:51:35.992 +0200 [debug] (configs.js) loaded env configs as "{"updates":{},"log":{},"javascript":{},"request":{"timeout":5000}}" 2023-04-21 11:51:35.992 +0200 [debug] (configs.js) loaded resolved configs as "{"updates":{"manifest_url":"https://cdn.freshdev.io/assets/fdk/updates.json","period":24},"log":{"level":"info"},"javascript":{"ecma_version":2020},"request":{"timeout":5000}}" 2023-04-21 11:51:35.992 +0200 [debug] (logger.js) Starting FDK in node v18.15.0 on win32 2023-04-21 11:51:35.992 +0200 [debug] (sequelize.js) setting up sqilite at "C:\Users\michele.mangiaterra\Desktop\workspaces\Infrastruttura\test-integration/.fdk/store.sqlite" 2023-04-21 11:51:35.993 +0200 [debug] (data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by July 31, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.0","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.1","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1682065731948}} 2023-04-21 11:51:35.993 +0200 [debug] (updater.js) last check less than 24 hours ago, not looking for updates 2023-04-21 11:51:35.998 +0200 [debug] (index.js) running with opts {} 2023-04-21 11:51:36.359 +0200 [debug] (manifest.js) Reloading manifest with {"platform-version":"2.3","product":{"freshservice":{"events":{"onTicketCreate":{"handler":"onTicketCreateHandler"},"onAppInstall":{"handler":"onInstallHandler"},"onExternalEvent":{"handler":"onWebhookCallbackHandler"}}}},"dependencies":{"axios":"0.21.1","base-64":"0.1.0","https":"1.0.0"},"engines":{"node":"18.15.0","fdk":"9.0.0"}}. 2023-04-21 11:51:36.359 +0200 [debug] (manifest.js) Inferred db,backend as features. 2023-04-21 11:51:36.363 +0200 [debug] (data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by July 31, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.0","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.1","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1682065731948}} 2023-04-21 11:51:36.390 +0200 [debug] (data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by July 31, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.0","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.1","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1682065731948}} 2023-04-21 11:51:38.152 +0200 [debug] (data.js) Read {"version_details":{"cli":{"deprecated":{"version":"<9","message":"This FDK version will be deprecated by July 31, 2023 There will be no further feature updates to this version. For a seamless app building experience, ensure to move to the latest FDK version. For more information, see https://developers.freshdesk.com/v2/docs/migration-overview/#latest_platform_version_migration."},"forced":{"version":"7.0.0","command":"npm install https://dl.freshdev.io/cli/fdk-7.0.0.tgz -g","message":"Your FDK version has been forced updated to v7.0.0, please visit https://community.developers.freshworks.com/t/fdk-v7-0-announcing-node-js-v12-and-es6-support/3606 to know more"},"latest":{"version":"9.0.0","command":"npm install https://cdn.freshdev.io/fdk/latest.tgz -g","message":"You are on the latest FDK version. For information on the features available as part of this FDK version, see https://developers.freshdesk.com/v2/docs/what's-new/ ."}},"addon":{"version":"1.13.1","url":"https://cdn.freshdev.io/assets/fdk/addons/addon.zip"}},"last_updated":{"time_stamp":1682065731948}} 2023-04-21 11:51:39.544 +0200 [debug] (validate.js) asked to skip the following validations,  2023-04-21 11:51:39.546 +0200 [debug] (validate.js) running validator actions 2023-04-21 11:51:39.546 +0200 [debug] (validate.js) running validator requests 2023-04-21 11:51:39.546 +0200 [debug] (validate.js) running validator app-dir 2023-04-21 11:51:39.546 +0200 [debug] (validate.js) running validator config-dir 2023-04-21 11:51:39.547 +0200 [debug] (config-dir.js) Checking to see if C:\Users\michele.mangiaterra\Desktop\workspaces\Infrastruttura\test-integration/config/ exists. 2023-04-21 11:51:39.547 +0200 [debug] (config-dir.js) Fetched the following config files iparams.json,iparam_test_data.json 2023-04-21 11:51:39.547 +0200 [debug] (validate.js) running validator custom-objects 2023-04-21 11:51:39.548 +0200 [debug] (validate.js) running validator event 2023-04-21 11:51:39.567 +0200 [debug] (event.js) Found ["onTicketCreateHandler","onInstallHandler","onWebhookCallbackHandler"] as exported functions. 2023-04-21 11:51:39.568 +0200 [debug] (validate.js) running validator iparam 2023-04-21 11:51:39.573 +0200 [debug] (validate.js) running validator lint 2023-04-21 11:51:39.573 +0200 [debug] (lint.js) passed fix flag: undefined 2023-04-21 11:51:39.576 +0200 [debug] (lint.js) Running the following lints on the file server\lib\handle-response.js : no-caller,no-process-env,complexity,max-nested-callbacks,handle-callback-err,no-eval,no-alert,no-debugger,no-unreachable,no-unhandled-promise,no-logging-rejections,no-non-client-request-model,no-deprecated-apis,no-proxy-requests,no-dependency-mismatch,no-empty-function,no-unused-vars 2023-04-21 11:51:39.623 +0200 [debug] (lint.js) Running the following lints on the file server\server.js : no-caller,no-process-env,complexity,max-nested-callbacks,handle-callback-err,no-eval,no-alert,no-debugger,no-unreachable,no-unhandled-promise,no-logging-rejections,no-non-client-request-model,no-deprecated-apis,no-proxy-requests,no-dependency-mismatch,no-empty-function,no-unused-vars 2023-04-21 11:51:39.641 +0200 [debug] (validate.js) running validator manifest 2023-04-21 11:51:39.642 +0200 [debug] (validate.js) skipping validator manifest-dependency 2023-04-21 11:51:39.642 +0200 [debug] (validate.js) running validator oauth 2023-04-21 11:51:39.642 +0200 [debug] (validate.js) skipping validator pkgsize 2023-04-21 11:51:39.642 +0200 [debug] (validate.js) running validator schema 2023-04-21 11:51:39.642 +0200 [debug] (validate.js) running validator version-check 2023-04-21 11:51:39.645 +0200 [warn] Please ensure that the following are addressed for quick review process: 2023-04-21 11:51:39.646 +0200 [warn] ⚠ iparam_test_data.json is deprecated, to test the installation page, visit - http://localhost:10001/custom_configs 2023-04-21 11:51:39.647 +0200 [warn] ⚠ server\server.js::21: refrain from simply logging errors. 2023-04-21 11:51:39.648 +0200 [warn] ⚠ server\server.js::45: refrain from simply logging errors. 2023-04-21 11:51:39.649 +0200 [error] 2023-04-21 11:51:39.652 +0200 [debug] (watcher.js) Preparing to watch the following files ./config,./manifest.json 2023-04-21 11:51:39.662 +0200 [debug] (install.js) dependency installer called with {"axios":"0.21.1","base-64":"0.1.0","https":"1.0.0"} 2023-04-21 11:51:39.709 +0200 [debug] (install.js) Preparing to install the following dependencies axios@0.21.1,base-64@0.1.0,https@1.0.0 2023-04-21 11:51:39.710 +0200 [info] Installing dependencies... 2023-04-21 11:51:40.817 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"__meta":{"secure":["freshserviceApiKey","extraErpApiKey"]},"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","freshserviceApiKey":"wtvIi39AuZ7bfiaccmXp","extraDomain":"extramobile.mnt.it","extraErpApiKey":"E431EB7E-1CA9-4582-BF2A-FAC0C9805C6A","adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:51:40.818 +0200 [debug] (custom-objects.js) to force or not? undefined 2023-04-21 11:51:40.818 +0200 [debug] (custom-objects.js) beginning to re-sync db 2023-04-21 11:51:41.178 +0200 [debug] (index.js) loading model at "C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\models\bigint-pivot.js" 2023-04-21 11:51:41.181 +0200 [debug] (index.js) loading model at "C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\models\entity-field-choice.js" 2023-04-21 11:51:41.182 +0200 [debug] (index.js) loading model at "C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\models\entity-field.js" 2023-04-21 11:51:41.184 +0200 [debug] (index.js) loading model at "C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\models\entity.js" 2023-04-21 11:51:41.186 +0200 [debug] (index.js) loading model at "C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\models\record.js" 2023-04-21 11:51:41.188 +0200 [debug] (index.js) loading model at "C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\models\string-pivot.js" 2023-04-21 11:51:41.213 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"__meta":{"secure":["freshserviceApiKey","extraErpApiKey"]},"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","freshserviceApiKey":"wtvIi39AuZ7bfiaccmXp","extraDomain":"extramobile.mnt.it","extraErpApiKey":"E431EB7E-1CA9-4582-BF2A-FAC0C9805C6A","adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:51:41.214 +0200 [debug] (custom-objects.js) updated local store with latest entity hash 2023-04-21 11:51:41.216 +0200 [info] Starting local testing server at http://*:10001/ Append 'dev=true' to your Freshservice account URL to start testing e.g. https://domain.freshservice.com/helpdesk/tickets/1?dev=true Quit the server with Control-C. 2023-04-21 11:51:41.216 +0200 [info] To simulate product, app setup, and external events, visit - http://localhost:10001/web/test 2023-04-21 11:51:41.217 +0200 [info] Populating test data with events found in the app 2023-04-21 11:51:41.219 +0200 [info] To test the installation page, visit - http://localhost:10001/custom_configs 2023-04-21 11:51:46.614 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"__meta":{"secure":["freshserviceApiKey","extraErpApiKey"]},"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","freshserviceApiKey":"wtvIi39AuZ7bfiaccmXp","extraDomain":"extramobile.mnt.it","extraErpApiKey":"E431EB7E-1CA9-4582-BF2A-FAC0C9805C6A","adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:51:46.617 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"__meta":{"secure":["freshserviceApiKey","extraErpApiKey"]},"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","freshserviceApiKey":"wtvIi39AuZ7bfiaccmXp","extraDomain":"extramobile.mnt.it","extraErpApiKey":"E431EB7E-1CA9-4582-BF2A-FAC0C9805C6A","adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:51:46.618 +0200 [debug] (iframe.js) Responding to product with {"configs":{"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","extraDomain":"extramobile.mnt.it","adminMail":"michele.mangiaterra@relatech.com"},"displayName":"test-integration","product":{"freshservice":{"events":{"onTicketCreate":{"handler":"onTicketCreateHandler"},"onAppInstall":{"handler":"onInstallHandler"},"onExternalEvent":{"handler":"onWebhookCallbackHandler"}}}},"features":["db","backend"],"actions":false,"omni":false,"products":["freshservice"],"platform":"2.3","isInstall":false,"v2":[]} 2023-04-21 11:51:46.662 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"__meta":{"secure":["freshserviceApiKey","extraErpApiKey"]},"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","freshserviceApiKey":"wtvIi39AuZ7bfiaccmXp","extraDomain":"extramobile.mnt.it","extraErpApiKey":"E431EB7E-1CA9-4582-BF2A-FAC0C9805C6A","adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:51:49.091 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"__meta":{"secure":["freshserviceApiKey","extraErpApiKey"]},"freshserviceDomain":"mediatechsrlhelpdesk.freshservice.com","freshserviceApiKey":"wtvIi39AuZ7bfiaccmXp","extraDomain":"extramobile.mnt.it","extraErpApiKey":"E431EB7E-1CA9-4582-BF2A-FAC0C9805C6A","adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.171 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.173 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.174 +0200 [debug] (iframe.js) Responding to product with {"configs":{"adminMail":"michele.mangiaterra@relatech.com"},"displayName":"test-integration","product":{"freshservice":{"events":{"onTicketCreate":{"handler":"onTicketCreateHandler"},"onAppInstall":{"handler":"onInstallHandler"},"onExternalEvent":{"handler":"onWebhookCallbackHandler"}}}},"features":["db","backend"],"actions":false,"omni":false,"products":["freshservice"],"platform":"2.3","isInstall":false,"v2":[]} 2023-04-21 11:52:31.192 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.193 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.193 +0200 [debug] (iframe.js) Responding to product with {"configs":{"adminMail":"michele.mangiaterra@relatech.com"},"displayName":"test-integration","product":{"freshservice":{"events":{"onTicketCreate":{"handler":"onTicketCreateHandler"},"onAppInstall":{"handler":"onInstallHandler"},"onExternalEvent":{"handler":"onWebhookCallbackHandler"}}}},"features":["db","backend"],"actions":false,"omni":false,"products":["freshservice"],"platform":"2.3","isInstall":false,"v2":[]} 2023-04-21 11:52:31.225 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.226 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:31.226 +0200 [debug] (iframe.js) Responding to product with {"configs":{"adminMail":"michele.mangiaterra@relatech.com"},"displayName":"test-integration","product":{"freshservice":{"events":{"onTicketCreate":{"handler":"onTicketCreateHandler"},"onAppInstall":{"handler":"onInstallHandler"},"onExternalEvent":{"handler":"onWebhookCallbackHandler"}}}},"features":["db","backend"],"actions":false,"omni":false,"products":["freshservice"],"platform":"2.3","isInstall":false,"v2":[]} 2023-04-21 11:52:32.537 +0200 [debug] (event.js) Found ["onTicketCreateHandler","onInstallHandler","onWebhookCallbackHandler"] as exported functions. 2023-04-21 11:52:35.022 +0200 [debug] (data.js) Read {"test_i_101_101_freshservice":{"test_i_101_101_custom_iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}} 2023-04-21 11:52:35.023 +0200 [debug] (beevents.js) Using {"adminMail":"michele.mangiaterra@relatech.com"} as iparams for testing. 2023-04-21 11:52:35.023 +0200 [debug] (beevents.js) Calling event handler with {"categoryName":"productEvent","categoryArgs":{"methodName":"onExternalEvent","methodParams":{"account_id":"12345","event":"onExternalEvent","timestamp":1496400354326,"region":"US","domain":"example.freshservice.com","data":{"message":{"id":123456,"action":"asset_added"}},"headers":{"Content-Type":"application/json"},"iparams":{"adminMail":"michele.mangiaterra@relatech.com"}}}} 2023-04-21 11:52:35.024 +0200 [debug] (coverage.js) Instrumenting C:\Users\michele.mangiaterra\Desktop\workspaces\Infrastruttura\test-integration\server\server.js 2023-04-21 11:52:35.175 +0200 [error] node:internal/modules/cjs/loader:444 throw err; ^ Error: Cannot find module 'C:\Users\michele.mangiaterra\Desktop\workspaces\Infrastruttura\test-integration\server\node_modules\https\index.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:436:19) at Module._findPath (node:internal/modules/cjs/loader:678:18) at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at loadDependency (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\event_handler\framework.js:49:10) at require (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\event_handler\framework.js:132:16) at server.js:492:39 at server.js:558:7 at Script.runInContext (node:vm:141:12) at ProductEvent.sandboxExecutor (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\event_handler\framework.js:236:25) at handler (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\event_handler\framework.js:372:31) at handleRequest (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\lib\routes\beevents.js:108:3) at Layer.handle [as handle_request] (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\node_modules\express\lib\router\layer.js:95:5) at next (C:\Users\michele.mangiaterra\AppData\Roaming\npm\node_modules\fdk\node_modules\express\lib\router\route.js:144:13) 2023-04-21 11:52:35.634 +0200 [debug] (coverage.js) Writing coverage. 2023-04-21 11:56:31.912 +0200 [info] NOTE: We recommend a coverage of 80% for apps that are to be published in the public marketplace.