Cannot find module 'botium-connector-directline3'

Hello guys.

When running the botium-cli run command, it displays an error message below.

Error: Loading Botium Plugin failed.
Loading Botium plugin from directline3 failed - Cannot find module ‘directline3’
Require stack:

  • /usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/containers/plugins/index.js
  • /usr/local/lib/node_modules/botium-cli/node_modules/botium-core/index.js
  • /usr/local/lib/node_modules/botium-cli/src/run/index.js
  • /usr/local/lib/node_modules/botium-cli/bin/botium-cli.js
    Loading Botium plugin botium-connector-directline3 failed, try “npm install botium-connector-directline3” - Cannot find module ‘botium-connector-directline3’
    Require stack:
  • /usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/containers/plugins/index.js
  • /usr/local/lib/node_modules/botium-cli/node_modules/botium-core/index.js
  • /usr/local/lib/node_modules/botium-cli/src/run/index.js
  • /usr/local/lib/node_modules/botium-cli/bin/botium-cli.js

see my settings

{
“botium”: {
“Capabilities”: {
“PROJECTNAME”: “My Botium Project”,
“CONTAINERMODE”: “directline3”,
“DIRECTLINE3_SECRET”:"*************"

},
"Sources": {},
"Envs": {}

}
}

{
“botium”: {
“Capabilities”: {
“PROJECTNAME”: “Directline3 Plugin Sample”,
“CONTAINERMODE”: “directline3”,
“DIRECTLINE3_SECRET”: “******************”,
“DIRECTLINE3_BUTTON_TYPE”: “message”,
“DIRECTLINE3_BUTTON_VALUE_FIELD”: “text”,
“DIRECTLINE3_HANDLE_ACTIVITY_TYPES”: “message,event”,
“DIRECTLINE3_ACTIVITY_TEMPLATE”: {
“channelData”: {
“my-special-channel-data”: “…”
}
},
“USER_INPUTS”: [
{
“ref”: “MEDIA”,
“src”: “MediaInput”,
“args”: {
“downloadMedia”: true
}
}
]
}
}
}

Did you execute “npm install botium-connector-directline3” ?

Please don’t post secret keys, this is a public forum.

1 Like