@Saif, looking at your answer I realized that I forgot to mention that I’m testing it on the account. I mean, I’m using the end-to-end test, I guess this is the name of this feature… I call fdk run, and then I can install through the account:
If I test it on http://localhost:10001/custom_configs, it works fine!
But here’s the info you asked:
Node logs:
FDK 1484: (data-util.js) Read {"teste3_101_101_freshchat":{"teste3_101_101_custom_iparams":{}}}
FDK 1484: (data-util.js) Read {"teste3_101_101_freshchat":{"teste3_101_101_custom_iparams":{}}}
FDK 1484: (data-util.js) Read {"teste3_101_101_freshchat":{"teste3_101_101_custom_iparams":{}}}
FDK 1484: (data-util.js) Read {"teste3_101_101_freshchat":{"teste3_101_101_custom_iparams":{}}}
FDK 1484: (app.js) /app/-1 responding with {"extDetail":{"extension_id":-1,"id":-1,"name":"teste3","display_name":"teste3","features":["db","backend"],"cover_art":{"thumb":"http://localhost:10001/web/assets/freshworks_logo.svg","thumb2x":"http://localhost:10001/web/assets/freshworks_logo.svg"},"screenshots":[{"large":"https://dej20ntrln9u1.cloudfront.net/images/test_data/791/live_screenshot/large/Screen_Shot_2018_01_24_at_11.03.20_PM.png","large2x":"https://dej20ntrln9u1.cloudfront.net/images/test_data/791/live_screenshot/large2x/Screen_Shot_2018_01_24_at_11.03.20_PM.png"}],"categories":[],"type":6,"install_count":0,"published_at":"Mon Feb 08 2021 19:38:28 GMT-0300 (Brasilia Standard Time)","contact_details":{"support_email":"dummy@heeloc.com","support_url":"http://com.com"},"options":{},"is_local":true,"has_config":true,"configs_url":"http://localhost:10001/custom_configs/form","published_date":"a few moments","platform_details":{"2.0":true},"version_id":-1,"events":{},"placeholders":{"ticket_sidebar":{"url":"https://dej20ntrln9u1.cloudfront.net/app-assets/test_data/e23f49923ae1f1191bcd/app/template.html","icon_url":"https://dej20ntrln9u1.cloudfront.net/app-assets/test_data/e23f49923ae1f1191bcd/app/icon.svg"}},"app_type":1},"installedExtn":{"installed_extension_id":-1,"installed_versions":[-1],"extension_id":-1,"version_id":-1,"installed":false,"enabled":false,"configs":{},"state":2,"extension_type":6}}
FDK 1484: (data-pipe.js) received call for route "smi" with action "invoke" and body {"action":"invoke","methodName":"signin","methodParams":{"body":{"test":"test"}},"data":{"isInstall":true},"isInstall":true}
FDK 1484: (data-util.js) Read {"teste3_101_101_freshchat":{"teste3_101_101_custom_iparams":{}}}
FDK 1484: (error.js) uncaught exception while handling web request "TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
at Function.from (buffer.js:207:11)
at getJWTPayload (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/utils/config-util.js:143:26)
at Object.isAllowedIssuerRoute (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/utils/config-util.js:158:20)
at dpRouterExec (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/routes/data-pipe.js:32:21)
at asyncify (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/utils/helper-util.js:157:28)
at Layer.handle [as handle_request] (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/layer.js:95:5)
at next (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/layer.js:95:5)
at /home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/index.js:335:12)
at next (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/index.js:275:10)
at /home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/middlewares/validator.js:16:32
at asyncify (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/utils/helper-util.js:157:28)
at dpRouter.use (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/lib/routes/data-pipe.js:52:82)
at Layer.handle [as handle_request] (/home/samuel/.nvm/versions/node/v10.18.1/lib/node_modules/fdk/node_modules/express/lib/router/layer.js:95:5)"
loupentest-chat.freshchat.com.har (543.8 KB)