Closed mcconejero closed 5 years ago
Seems as the botkit service is not running at the expected location. Check botkit url in botium.json.
I'm using botkit in local and the url is fine, it's http://localhost:3000
Please run it again in verbose mode and attach logfile.
npm info it worked if it ends with ok
npm verb cli [ '/home/mario/.nvm/versions/node/v10.15.3/bin/node',
npm verb cli '/home/mario/.nvm/versions/node/v10.15.3/bin/npm',
npm verb cli 'run',
npm verb cli 'mocha',
npm verb cli '-verbose' ]
npm info using npm@6.9.0
npm info using node@v10.15.3
npm verb run-script [ 'premocha', 'mocha', 'postmocha' ]
npm info lifecycle botkit-bot@1.0.0~premocha: botkit-bot@1.0.0
npm info lifecycle botkit-bot@1.0.0~mocha: botkit-bot@1.0.0
> botkit-bot@1.0.0 mocha /home/mario/Desktop/bot
> mocha spec
botkit-bot
1)give me picture
0 passing (674ms)
1 failing
1) botkit-bot
give me picture:
Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
TranscriptError: Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
at Request.request [as _callback] (node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
at Request.self.callback (node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/request/request.js:1083:12)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
at async.waterfall (node_modules/botium-core/src/scripting/Convo.js:214:25)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
at next (node_modules/async/dist/async.js:5329:29)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
at runConversation (node_modules/botium-core/src/scripting/Convo.js:192:15)
at async.mapSeries (node_modules/botium-core/src/scripting/Convo.js:383:9)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1140:9
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
at iterateeCallback (node_modules/async/dist/async.js:988:17)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1137:13
at convoStepDone (node_modules/botium-core/src/scripting/Convo.js:258:11)
at scriptingEvents.setUserInput.then.then.then.then.catch (node_modules/botium-core/src/scripting/Convo.js:298:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
npm verb lifecycle botkit-bot@1.0.0~mocha: unsafe-perm in lifecycle true
npm verb lifecycle botkit-bot@1.0.0~mocha: PATH: /home/mario/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/mario/Desktop/bot/node_modules/.bin:/home/mario/.nvm/versions/node/v10.15.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
npm verb lifecycle botkit-bot@1.0.0~mocha: CWD: /home/mario/Desktop/bot
npm info lifecycle botkit-bot@1.0.0~mocha: Failed to exec mocha script
npm verb stack Error: botkit-bot@1.0.0 mocha: `mocha spec`
npm verb stack Exit status 2
npm verb stack at EventEmitter.<anonymous> (/home/mario/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
npm verb stack at EventEmitter.emit (events.js:189:13)
npm verb stack at ChildProcess.<anonymous> (/home/mario/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:189:13)
npm verb stack at maybeClose (internal/child_process.js:970:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm verb pkgid botkit-bot@1.0.0
npm verb cwd /home/mario/Desktop/bot
npm verb Linux 4.15.0-46-generic
npm verb argv "/home/mario/.nvm/versions/node/v10.15.3/bin/node" "/home/mario/.nvm/versions/node/v10.15.3/bin/npm" "run" "mocha" "-verbose"
npm verb node v10.15.3
npm verb npm v6.9.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! botkit-bot@1.0.0 mocha: `mocha spec`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the botkit-bot@1.0.0 mocha script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 2, true ]
npm timing npm Completed in 1856ms
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mario/.npm/_logs/2019-05-27T14_09_02_819Z-debug.log
set DEBUG environment variable to enable verbose mode:
export DEBUG=botium*
botium-bindings-main Botium Bindings args: { convodirs: [ 'spec/convo' ],
botium-bindings-main expandConvos: true,
botium-bindings-main expandUtterancesToConvos: false,
botium-bindings-main expandScriptingMemoryToConvos: false } +0ms
botium-BotDriver Loaded Botium configuration file ./botium.json +0ms
botium-BotDriver BuildCompiler: Capabilites: { PROJECTNAME: 'botkit-bot',
botium-BotDriver TEMPDIR: 'botiumwork',
botium-BotDriver CLEANUPTEMPDIR: true,
botium-BotDriver WAITFORBOTTIMEOUT: 10000,
botium-BotDriver SIMULATE_WRITING_SPEED: false,
botium-BotDriver DOCKERCOMPOSEPATH: 'docker-compose',
botium-BotDriver DOCKERMACHINEPATH: 'docker-machine',
botium-BotDriver DOCKERMACHINE: false,
botium-BotDriver DOCKERIMAGE: 'node:boron',
botium-BotDriver DOCKERUNIQUECONTAINERNAMES: false,
botium-BotDriver DOCKERSYSLOGPORT_RANGE: '47100-47299',
botium-BotDriver BOT_HEALTH_STATUS: 200,
botium-BotDriver SLACK_PUBLISHPORT_RANGE: '46100-46299',
botium-BotDriver FACEBOOK_PUBLISHPORT_RANGE: '46300-46499',
botium-BotDriver FACEBOOK_SEND_DELIVERY_CONFIRMATION: true,
botium-BotDriver BOTFRAMEWORK_PUBLISHPORT_RANGE: '46500-46699',
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PORT: 3978,
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PATH: 'api/messages',
botium-BotDriver BOTFRAMEWORK_CHANNEL_ID: 'facebook',
botium-BotDriver SIMPLEREST_PING_RETRIES: 6,
botium-BotDriver SIMPLEREST_PING_TIMEOUT: 10000,
botium-BotDriver SIMPLEREST_PING_VERB: 'GET',
botium-BotDriver SIMPLEREST_METHOD: 'GET',
botium-BotDriver WEBSPEECH_SERVER_PORT: 46050,
botium-BotDriver WEBSPEECH_LANGUAGE: 'en-US',
botium-BotDriver WEBSPEECH_CLOSEBROWSER: true,
botium-BotDriver SCRIPTING_TXT_EOL: '\n',
botium-BotDriver SCRIPTING_XLSX_EOL_SPLIT: '\r',
botium-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n',
botium-BotDriver SCRIPTING_XLSX_STARTROW: 2,
botium-BotDriver SCRIPTING_XLSX_STARTCOL: 1,
botium-BotDriver SCRIPTING_NORMALIZE_TEXT: true,
botium-BotDriver SCRIPTING_ENABLE_MEMORY: false,
botium-BotDriver SCRIPTING_MATCHING_MODE: 'includeLowerCase',
botium-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all',
botium-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
botium-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
botium-BotDriver RETRY_USERSAYS_ONERROR_REGEXP: [],
botium-BotDriver RETRY_USERSAYS_NUMRETRIES: 1,
botium-BotDriver RETRY_USERSAYS_FACTOR: 1,
botium-BotDriver RETRY_USERSAYS_MINTIMEOUT: 1000,
botium-BotDriver ASSERTERS: [],
botium-BotDriver LOGIC_HOOKS: [],
botium-BotDriver USER_INPUTS: [],
botium-BotDriver CONTAINERMODE: 'botkit',
botium-BotDriver BOTKIT_SERVER_URL: 'http://localhost:3000' } +2ms
botium-ScriptingProvider Using matching mode: includeLowerCase +0ms
botium-asserterUtils Loaded Default asserter - [ 'BUTTONS',
botium-asserterUtils 'MEDIA',
botium-asserterUtils 'PAUSE_ASSERTER',
botium-asserterUtils 'ENTITIES',
botium-asserterUtils 'ENTITY_VALUES',
botium-asserterUtils 'INTENT',
botium-asserterUtils 'INTENT_CONFIDENCE' ] +0ms
botium-asserterUtils Loaded Default logic hook - [ 'PAUSE',
botium-asserterUtils 'WAITFORBOT',
botium-asserterUtils 'SET_SCRIPTING_MEMORY',
botium-asserterUtils 'CLEAR_SCRIPTING_MEMORY',
botium-asserterUtils 'INCLUDE' ] +0ms
botium-asserterUtils Loaded Default user input - [ 'BUTTON', 'MEDIA', 'FORM' ] +1ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found filenames: example.convo.txt,give_me_a_picture.convo.txt +14ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found convos:
botium-ScriptingProvider 1 example convo ({ convoDir: 'spec/convo', filename: 'example.convo.txt' }): Line 3: #me - Caca | Line 6: #bot - Echo: Caca
botium-ScriptingProvider 2 give me picture ({ convoDir: 'spec/convo',
botium-ScriptingProvider filename: 'give_me_a_picture.convo.txt' }): Line 3: #me - Hello, Bot! | Line 6: #bot - You said: Hello, Bot! | Line 9: #me - give me a picture | Line 12: #bot - Here is a picture MEDIA(http://www.botium.at/img/logo.png) +7ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found utterances:
botium-ScriptingProvider none +0ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found partial convos:
botium-ScriptingProvider none +0ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) scripting memories:
botium-ScriptingProvider none +1ms
botium-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms
botium-bindings-main ready reading convos and utterances, number of test cases: (2). +328ms
botium-bindings-main adding test case 1 example convo +0ms
botium-bindings-main adding test case 2 give me picture +1ms
botkit-bot
botium-BotDriver Build - Botium Core Version: 1.4.14 +330ms
botium-BotDriver Build - Capabilites: { PROJECTNAME: 'botkit-bot',
botium-BotDriver TEMPDIR: 'botiumwork',
botium-BotDriver CLEANUPTEMPDIR: true,
botium-BotDriver WAITFORBOTTIMEOUT: 10000,
botium-BotDriver SIMULATE_WRITING_SPEED: false,
botium-BotDriver DOCKERCOMPOSEPATH: 'docker-compose',
botium-BotDriver DOCKERMACHINEPATH: 'docker-machine',
botium-BotDriver DOCKERMACHINE: false,
botium-BotDriver DOCKERIMAGE: 'node:boron',
botium-BotDriver DOCKERUNIQUECONTAINERNAMES: false,
botium-BotDriver DOCKERSYSLOGPORT_RANGE: '47100-47299',
botium-BotDriver BOT_HEALTH_STATUS: 200,
botium-BotDriver SLACK_PUBLISHPORT_RANGE: '46100-46299',
botium-BotDriver FACEBOOK_PUBLISHPORT_RANGE: '46300-46499',
botium-BotDriver FACEBOOK_SEND_DELIVERY_CONFIRMATION: true,
botium-BotDriver BOTFRAMEWORK_PUBLISHPORT_RANGE: '46500-46699',
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PORT: 3978,
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PATH: 'api/messages',
botium-BotDriver BOTFRAMEWORK_CHANNEL_ID: 'facebook',
botium-BotDriver SIMPLEREST_PING_RETRIES: 6,
botium-BotDriver SIMPLEREST_PING_TIMEOUT: 10000,
botium-BotDriver SIMPLEREST_PING_VERB: 'GET',
botium-BotDriver SIMPLEREST_METHOD: 'GET',
botium-BotDriver WEBSPEECH_SERVER_PORT: 46050,
botium-BotDriver WEBSPEECH_LANGUAGE: 'en-US',
botium-BotDriver WEBSPEECH_CLOSEBROWSER: true,
botium-BotDriver SCRIPTING_TXT_EOL: '\n',
botium-BotDriver SCRIPTING_XLSX_EOL_SPLIT: '\r',
botium-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n',
botium-BotDriver SCRIPTING_XLSX_STARTROW: 2,
botium-BotDriver SCRIPTING_XLSX_STARTCOL: 1,
botium-BotDriver SCRIPTING_NORMALIZE_TEXT: true,
botium-BotDriver SCRIPTING_ENABLE_MEMORY: false,
botium-BotDriver SCRIPTING_MATCHING_MODE: 'includeLowerCase',
botium-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all',
botium-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
botium-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
botium-BotDriver RETRY_USERSAYS_ONERROR_REGEXP: [],
botium-BotDriver RETRY_USERSAYS_NUMRETRIES: 1,
botium-BotDriver RETRY_USERSAYS_FACTOR: 1,
botium-BotDriver RETRY_USERSAYS_MINTIMEOUT: 1000,
botium-BotDriver ASSERTERS: [],
botium-BotDriver LOGIC_HOOKS: [],
botium-BotDriver USER_INPUTS: [],
botium-BotDriver CONTAINERMODE: 'botkit',
botium-BotDriver BOTKIT_SERVER_URL: 'http://localhost:3000' } +0ms
botium-BotDriver Build - Sources : { LOCALPATH: '.',
botium-BotDriver GITPATH: 'git',
botium-BotDriver GITBRANCH: 'master',
botium-BotDriver GITDIR: '.' } +1ms
botium-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +0ms
botium-PluginConnectorContainer Invalid Botium plugin loaded from botkit, expected PluginVersion, PluginClass fields +0ms
botium-PluginConnectorContainer Botium plugin botium-connector-botkit loaded +2ms
botium-connector-botkit Validate called +0ms
botium-connector-botkit Start called +5ms
botium-connector-botkit success on url check http://localhost:3000 +25ms
botium-bindings-main running testcase1 example convo +629ms
botium-Convo example convo/Line 3: user says {
botium-Convo "sender": "me",
botium-Convo "channel": null,
botium-Convo "messageText": "Caca",
botium-Convo "stepTag": "Line 3",
botium-Convo "not": false,
botium-Convo "asserters": [],
botium-Convo "logicHooks": [],
botium-Convo "userInputs": []
botium-Convo } +0ms
botium-connector-botkit UserSays called { conversation:
botium-connector-botkit [ ConvoStep {
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Caca',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 3',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'bot',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Echo: Caca',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 6',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] } ],
botium-connector-botkit currentStepIndex: -1,
botium-connector-botkit scriptingMemory: {},
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Caca',
botium-connector-botkit media: null,
botium-connector-botkit buttons: null,
botium-connector-botkit cards: null,
botium-connector-botkit forms: null,
botium-connector-botkit nlp: undefined,
botium-connector-botkit sourceData: undefined,
botium-connector-botkit sourceAction: undefined,
botium-connector-botkit attachments: null } +5ms
botium-connector-botkit constructed requestOptions {
botium-connector-botkit "uri": "http://localhost:3000/botkit/receive",
botium-connector-botkit "method": "POST",
botium-connector-botkit "json": true,
botium-connector-botkit "body": {
botium-connector-botkit "text": "Caca",
botium-connector-botkit "user": "1b778e63-2c59-4e4a-b0d5-c17e44c5769a",
botium-connector-botkit "channel": "webhook"
botium-connector-botkit }
botium-connector-botkit } +1ms
botium-connector-botkit got error response: 404/Not Found +8ms
botium-Convo Error: example convo/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-Convo at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-Convo at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-Convo at Request.emit (events.js:189:13)
botium-Convo at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-Convo at Request.emit (events.js:189:13)
botium-Convo at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-Convo at Object.onceWrapper (events.js:277:13)
botium-Convo at IncomingMessage.emit (events.js:194:15)
botium-Convo at endReadableNT (_stream_readable.js:1125:12)
botium-Convo at process._tickCallback (internal/process/next_tick.js:63:19)
botium-Convo at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:292:31)
botium-Convo at process._tickCallback (internal/process/next_tick.js:68:7) +12ms
botium-bindings-main Test Case "example convo" failed: { TranscriptError: Error: example convo/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-bindings-main at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-bindings-main at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-bindings-main at Object.onceWrapper (events.js:277:13)
botium-bindings-main at IncomingMessage.emit (events.js:194:15)
botium-bindings-main at endReadableNT (_stream_readable.js:1125:12)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:63:19)
botium-bindings-main at async.waterfall (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:214:25)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
botium-bindings-main at next (/home/mario/Desktop/bot/node_modules/async/dist/async.js:5329:29)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
botium-bindings-main at runConversation (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:192:15)
botium-bindings-main at async.mapSeries (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:383:9)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1140:9
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
botium-bindings-main at iterateeCallback (/home/mario/Desktop/bot/node_modules/async/dist/async.js:988:17)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1137:13
botium-bindings-main at convoStepDone (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:258:11)
botium-bindings-main at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:298:15)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:68:7)
botium-bindings-main name: 'TranscriptError',
botium-bindings-main transcript:
botium-bindings-main Transcript {
botium-bindings-main steps: [ [TranscriptStep] ],
botium-bindings-main scriptingMemory: {},
botium-bindings-main convoBegin: 2019-05-27T14:21:21.140Z,
botium-bindings-main convoEnd: 2019-05-27T14:21:21.153Z,
botium-bindings-main err:
botium-bindings-main Error: example convo/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-bindings-main at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-bindings-main at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-bindings-main at Object.onceWrapper (events.js:277:13)
botium-bindings-main at IncomingMessage.emit (events.js:194:15)
botium-bindings-main at endReadableNT (_stream_readable.js:1125:12)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:63:19)
botium-bindings-main at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:292:31)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:68:7) } } +16ms
1) example convo
botium-connector-botkit Stop called +5ms
botium-connector-botkit Start called +2ms
botium-connector-botkit success on url check http://localhost:3000 +4ms
botium-bindings-main running testcase2 give me picture +10ms
botium-Convo give me picture/Line 3: user says {
botium-Convo "sender": "me",
botium-Convo "channel": null,
botium-Convo "messageText": "Hello, Bot!",
botium-Convo "stepTag": "Line 3",
botium-Convo "not": false,
botium-Convo "asserters": [],
botium-Convo "logicHooks": [],
botium-Convo "userInputs": []
botium-Convo } +11ms
botium-connector-botkit UserSays called { conversation:
botium-connector-botkit [ ConvoStep {
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Hello, Bot!',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 3',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'bot',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'You said: Hello, Bot!',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 6',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'give me a picture',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 9',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'bot',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Here is a picture',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 12',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [Array],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] } ],
botium-connector-botkit currentStepIndex: -1,
botium-connector-botkit scriptingMemory: {},
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Hello, Bot!',
botium-connector-botkit media: null,
botium-connector-botkit buttons: null,
botium-connector-botkit cards: null,
botium-connector-botkit forms: null,
botium-connector-botkit nlp: undefined,
botium-connector-botkit sourceData: undefined,
botium-connector-botkit sourceAction: undefined,
botium-connector-botkit attachments: null } +2ms
botium-connector-botkit constructed requestOptions {
botium-connector-botkit "uri": "http://localhost:3000/botkit/receive",
botium-connector-botkit "method": "POST",
botium-connector-botkit "json": true,
botium-connector-botkit "body": {
botium-connector-botkit "text": "Hello, Bot!",
botium-connector-botkit "user": "a82d8f14-2479-4d66-945e-16bc3f1fc180",
botium-connector-botkit "channel": "webhook"
botium-connector-botkit }
botium-connector-botkit } +0ms
botium-connector-botkit got error response: 404/Not Found +3ms
botium-Convo Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-Convo at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-Convo at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-Convo at Request.emit (events.js:189:13)
botium-Convo at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-Convo at Request.emit (events.js:189:13)
botium-Convo at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-Convo at Object.onceWrapper (events.js:277:13)
botium-Convo at IncomingMessage.emit (events.js:194:15)
botium-Convo at endReadableNT (_stream_readable.js:1125:12)
botium-Convo at process._tickCallback (internal/process/next_tick.js:63:19)
botium-Convo at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:292:31)
botium-Convo at process._tickCallback (internal/process/next_tick.js:68:7) +5ms
botium-bindings-main Test Case "give me picture" failed: { TranscriptError: Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-bindings-main at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-bindings-main at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-bindings-main at Object.onceWrapper (events.js:277:13)
botium-bindings-main at IncomingMessage.emit (events.js:194:15)
botium-bindings-main at endReadableNT (_stream_readable.js:1125:12)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:63:19)
botium-bindings-main at async.waterfall (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:214:25)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
botium-bindings-main at next (/home/mario/Desktop/bot/node_modules/async/dist/async.js:5329:29)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
botium-bindings-main at runConversation (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:192:15)
botium-bindings-main at async.mapSeries (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:383:9)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1140:9
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
botium-bindings-main at iterateeCallback (/home/mario/Desktop/bot/node_modules/async/dist/async.js:988:17)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1137:13
botium-bindings-main at convoStepDone (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:258:11)
botium-bindings-main at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:298:15)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:68:7)
botium-bindings-main name: 'TranscriptError',
botium-bindings-main transcript:
botium-bindings-main Transcript {
botium-bindings-main steps: [ [TranscriptStep] ],
botium-bindings-main scriptingMemory: {},
botium-bindings-main convoBegin: 2019-05-27T14:21:21.164Z,
botium-bindings-main convoEnd: 2019-05-27T14:21:21.169Z,
botium-bindings-main err:
botium-bindings-main Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-bindings-main at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-bindings-main at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-bindings-main at Object.onceWrapper (events.js:277:13)
botium-bindings-main at IncomingMessage.emit (events.js:194:15)
botium-bindings-main at endReadableNT (_stream_readable.js:1125:12)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:63:19)
botium-bindings-main at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:292:31)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:68:7) } } +5ms
2) give me picture
botium-connector-botkit Stop called +2ms
botium-BaseContainer Cleanup rimrafing temp dir /home/mario/Desktop/bot/botiumwork/botkit-bot-20190527-162120-zHgb6 +0ms
0 passing (665ms)
2 failing
1) botkit-bot
example convo:
Error: example convo/Line 3: error sending to bot Error: got error response: 404/Not Found
at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
TranscriptError: Error: example convo/Line 3: error sending to bot Error: got error response: 404/Not Found
at Request.request [as _callback] (node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
at Request.self.callback (node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/request/request.js:1083:12)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
at async.waterfall (node_modules/botium-core/src/scripting/Convo.js:214:25)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
at next (node_modules/async/dist/async.js:5329:29)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
at runConversation (node_modules/botium-core/src/scripting/Convo.js:192:15)
at async.mapSeries (node_modules/botium-core/src/scripting/Convo.js:383:9)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1140:9
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
at iterateeCallback (node_modules/async/dist/async.js:988:17)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1137:13
at convoStepDone (node_modules/botium-core/src/scripting/Convo.js:258:11)
at scriptingEvents.setUserInput.then.then.then.then.catch (node_modules/botium-core/src/scripting/Convo.js:298:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
2) botkit-bot
give me picture:
Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
TranscriptError: Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
at Request.request [as _callback] (node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
at Request.self.callback (node_modules/request/request.js:185:22)
at Request.<anonymous> (node_modules/request/request.js:1161:10)
at IncomingMessage.<anonymous> (node_modules/request/request.js:1083:12)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
at async.waterfall (node_modules/botium-core/src/scripting/Convo.js:214:25)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
at next (node_modules/async/dist/async.js:5329:29)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
at runConversation (node_modules/botium-core/src/scripting/Convo.js:192:15)
at async.mapSeries (node_modules/botium-core/src/scripting/Convo.js:383:9)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1140:9
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
at iterateeCallback (node_modules/async/dist/async.js:988:17)
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1137:13
at convoStepDone (node_modules/botium-core/src/scripting/Convo.js:258:11)
at scriptingEvents.setUserInput.then.then.then.then.catch (node_modules/botium-core/src/scripting/Convo.js:298:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
npm verb lifecycle botkit-bot@1.0.0~mocha: unsafe-perm in lifecycle true
npm verb lifecycle botkit-bot@1.0.0~mocha: PATH: /home/mario/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/mario/Desktop/bot/node_modules/.bin:/home/mario/.nvm/versions/node/v10.15.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
npm verb lifecycle botkit-bot@1.0.0~mocha: CWD: /home/mario/Desktop/bot
npm info lifecycle botkit-bot@1.0.0~mocha: Failed to exec mocha script
npm verb stack Error: botkit-bot@1.0.0 mocha: `mocha spec`
npm verb stack Exit status 2
npm verb stack at EventEmitter.<anonymous> (/home/mario/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
npm verb stack at EventEmitter.emit (events.js:189:13)
npm verb stack at ChildProcess.<anonymous> (/home/mario/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:189:13)
npm verb stack at maybeClose (internal/child_process.js:970:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm verb pkgid botkit-bot@1.0.0
npm verb cwd /home/mario/Desktop/bot
npm verb Linux 4.15.0-46-generic
npm verb argv "/home/mario/.nvm/versions/node/v10.15.3/bin/node" "/home/mario/.nvm/versions/node/v10.15.3/bin/npm" "run" "mocha" "-verbose"
npm verb node v10.15.3
npm verb npm v6.9.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! botkit-bot@1.0.0 mocha: `mocha spec`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the botkit-bot@1.0.0 mocha script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 2, true ]
npm timing npm Completed in 1822ms
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mario/.npm/_logs/2019-05-27T14_21_21_199Z-debug.log
mario@levelbot-ThinkPad-L530:~/Desktop/bot$ npm run mocha -verbose
npm info it worked if it ends with ok
npm verb cli [ '/home/mario/.nvm/versions/node/v10.15.3/bin/node',
npm verb cli '/home/mario/.nvm/versions/node/v10.15.3/bin/npm',
npm verb cli 'run',
npm verb cli 'mocha',
npm verb cli '-verbose' ]
npm info using npm@6.9.0
npm info using node@v10.15.3
npm verb run-script [ 'premocha', 'mocha', 'postmocha' ]
npm info lifecycle botkit-bot@1.0.0~premocha: botkit-bot@1.0.0
npm info lifecycle botkit-bot@1.0.0~mocha: botkit-bot@1.0.0
> botkit-bot@1.0.0 mocha /home/mario/Desktop/bot
> mocha spec
botium-bindings-main Botium Bindings args: { convodirs: [ 'spec/convo' ],
botium-bindings-main expandConvos: true,
botium-bindings-main expandUtterancesToConvos: false,
botium-bindings-main expandScriptingMemoryToConvos: false } +0ms
botium-BotDriver Loaded Botium configuration file ./botium.json +0ms
botium-BotDriver BuildCompiler: Capabilites: { PROJECTNAME: 'botkit-bot',
botium-BotDriver TEMPDIR: 'botiumwork',
botium-BotDriver CLEANUPTEMPDIR: true,
botium-BotDriver WAITFORBOTTIMEOUT: 10000,
botium-BotDriver SIMULATE_WRITING_SPEED: false,
botium-BotDriver DOCKERCOMPOSEPATH: 'docker-compose',
botium-BotDriver DOCKERMACHINEPATH: 'docker-machine',
botium-BotDriver DOCKERMACHINE: false,
botium-BotDriver DOCKERIMAGE: 'node:boron',
botium-BotDriver DOCKERUNIQUECONTAINERNAMES: false,
botium-BotDriver DOCKERSYSLOGPORT_RANGE: '47100-47299',
botium-BotDriver BOT_HEALTH_STATUS: 200,
botium-BotDriver SLACK_PUBLISHPORT_RANGE: '46100-46299',
botium-BotDriver FACEBOOK_PUBLISHPORT_RANGE: '46300-46499',
botium-BotDriver FACEBOOK_SEND_DELIVERY_CONFIRMATION: true,
botium-BotDriver BOTFRAMEWORK_PUBLISHPORT_RANGE: '46500-46699',
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PORT: 3978,
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PATH: 'api/messages',
botium-BotDriver BOTFRAMEWORK_CHANNEL_ID: 'facebook',
botium-BotDriver SIMPLEREST_PING_RETRIES: 6,
botium-BotDriver SIMPLEREST_PING_TIMEOUT: 10000,
botium-BotDriver SIMPLEREST_PING_VERB: 'GET',
botium-BotDriver SIMPLEREST_METHOD: 'GET',
botium-BotDriver WEBSPEECH_SERVER_PORT: 46050,
botium-BotDriver WEBSPEECH_LANGUAGE: 'en-US',
botium-BotDriver WEBSPEECH_CLOSEBROWSER: true,
botium-BotDriver SCRIPTING_TXT_EOL: '\n',
botium-BotDriver SCRIPTING_XLSX_EOL_SPLIT: '\r',
botium-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n',
botium-BotDriver SCRIPTING_XLSX_STARTROW: 2,
botium-BotDriver SCRIPTING_XLSX_STARTCOL: 1,
botium-BotDriver SCRIPTING_NORMALIZE_TEXT: true,
botium-BotDriver SCRIPTING_ENABLE_MEMORY: false,
botium-BotDriver SCRIPTING_MATCHING_MODE: 'includeLowerCase',
botium-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all',
botium-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
botium-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
botium-BotDriver RETRY_USERSAYS_ONERROR_REGEXP: [],
botium-BotDriver RETRY_USERSAYS_NUMRETRIES: 1,
botium-BotDriver RETRY_USERSAYS_FACTOR: 1,
botium-BotDriver RETRY_USERSAYS_MINTIMEOUT: 1000,
botium-BotDriver ASSERTERS: [],
botium-BotDriver LOGIC_HOOKS: [],
botium-BotDriver USER_INPUTS: [],
botium-BotDriver CONTAINERMODE: 'botkit',
botium-BotDriver BOTKIT_SERVER_URL: 'http://localhost:3000' } +1ms
botium-ScriptingProvider Using matching mode: includeLowerCase +0ms
botium-asserterUtils Loaded Default asserter - [ 'BUTTONS',
botium-asserterUtils 'MEDIA',
botium-asserterUtils 'PAUSE_ASSERTER',
botium-asserterUtils 'ENTITIES',
botium-asserterUtils 'ENTITY_VALUES',
botium-asserterUtils 'INTENT',
botium-asserterUtils 'INTENT_CONFIDENCE' ] +0ms
botium-asserterUtils Loaded Default logic hook - [ 'PAUSE',
botium-asserterUtils 'WAITFORBOT',
botium-asserterUtils 'SET_SCRIPTING_MEMORY',
botium-asserterUtils 'CLEAR_SCRIPTING_MEMORY',
botium-asserterUtils 'INCLUDE' ] +1ms
botium-asserterUtils Loaded Default user input - [ 'BUTTON', 'MEDIA', 'FORM' ] +0ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found filenames: give_me_a_picture.convo.txt +8ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found convos:
botium-ScriptingProvider 1 give me picture ({ convoDir: 'spec/convo',
botium-ScriptingProvider filename: 'give_me_a_picture.convo.txt' }): Line 3: #me - Hello, Bot! | Line 6: #bot - You said: Hello, Bot! | Line 9: #me - give me a picture | Line 12: #bot - Here is a picture MEDIA(http://www.botium.at/img/logo.png) +4ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found utterances:
botium-ScriptingProvider none +0ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) found partial convos:
botium-ScriptingProvider none +0ms
botium-ScriptingProvider ReadConvosFromDirectory(spec/convo) scripting memories:
botium-ScriptingProvider none +0ms
botium-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms
botium-bindings-main ready reading convos and utterances, number of test cases: (1). +316ms
botium-bindings-main adding test case 1 give me picture +0ms
botkit-bot
botium-BotDriver Build - Botium Core Version: 1.4.14 +319ms
botium-BotDriver Build - Capabilites: { PROJECTNAME: 'botkit-bot',
botium-BotDriver TEMPDIR: 'botiumwork',
botium-BotDriver CLEANUPTEMPDIR: true,
botium-BotDriver WAITFORBOTTIMEOUT: 10000,
botium-BotDriver SIMULATE_WRITING_SPEED: false,
botium-BotDriver DOCKERCOMPOSEPATH: 'docker-compose',
botium-BotDriver DOCKERMACHINEPATH: 'docker-machine',
botium-BotDriver DOCKERMACHINE: false,
botium-BotDriver DOCKERIMAGE: 'node:boron',
botium-BotDriver DOCKERUNIQUECONTAINERNAMES: false,
botium-BotDriver DOCKERSYSLOGPORT_RANGE: '47100-47299',
botium-BotDriver BOT_HEALTH_STATUS: 200,
botium-BotDriver SLACK_PUBLISHPORT_RANGE: '46100-46299',
botium-BotDriver FACEBOOK_PUBLISHPORT_RANGE: '46300-46499',
botium-BotDriver FACEBOOK_SEND_DELIVERY_CONFIRMATION: true,
botium-BotDriver BOTFRAMEWORK_PUBLISHPORT_RANGE: '46500-46699',
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PORT: 3978,
botium-BotDriver BOTFRAMEWORK_WEBHOOK_PATH: 'api/messages',
botium-BotDriver BOTFRAMEWORK_CHANNEL_ID: 'facebook',
botium-BotDriver SIMPLEREST_PING_RETRIES: 6,
botium-BotDriver SIMPLEREST_PING_TIMEOUT: 10000,
botium-BotDriver SIMPLEREST_PING_VERB: 'GET',
botium-BotDriver SIMPLEREST_METHOD: 'GET',
botium-BotDriver WEBSPEECH_SERVER_PORT: 46050,
botium-BotDriver WEBSPEECH_LANGUAGE: 'en-US',
botium-BotDriver WEBSPEECH_CLOSEBROWSER: true,
botium-BotDriver SCRIPTING_TXT_EOL: '\n',
botium-BotDriver SCRIPTING_XLSX_EOL_SPLIT: '\r',
botium-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n',
botium-BotDriver SCRIPTING_XLSX_STARTROW: 2,
botium-BotDriver SCRIPTING_XLSX_STARTCOL: 1,
botium-BotDriver SCRIPTING_NORMALIZE_TEXT: true,
botium-BotDriver SCRIPTING_ENABLE_MEMORY: false,
botium-BotDriver SCRIPTING_MATCHING_MODE: 'includeLowerCase',
botium-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all',
botium-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
botium-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
botium-BotDriver RETRY_USERSAYS_ONERROR_REGEXP: [],
botium-BotDriver RETRY_USERSAYS_NUMRETRIES: 1,
botium-BotDriver RETRY_USERSAYS_FACTOR: 1,
botium-BotDriver RETRY_USERSAYS_MINTIMEOUT: 1000,
botium-BotDriver ASSERTERS: [],
botium-BotDriver LOGIC_HOOKS: [],
botium-BotDriver USER_INPUTS: [],
botium-BotDriver CONTAINERMODE: 'botkit',
botium-BotDriver BOTKIT_SERVER_URL: 'http://localhost:3000' } +0ms
botium-BotDriver Build - Sources : { LOCALPATH: '.',
botium-BotDriver GITPATH: 'git',
botium-BotDriver GITBRANCH: 'master',
botium-BotDriver GITDIR: '.' } +1ms
botium-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +0ms
botium-PluginConnectorContainer Invalid Botium plugin loaded from botkit, expected PluginVersion, PluginClass fields +0ms
botium-PluginConnectorContainer Botium plugin botium-connector-botkit loaded +1ms
botium-connector-botkit Validate called +0ms
botium-connector-botkit Start called +4ms
botium-connector-botkit success on url check http://localhost:3000 +19ms
botium-bindings-main running testcase1 give me picture +628ms
botium-Convo give me picture/Line 3: user says {
botium-Convo "sender": "me",
botium-Convo "channel": null,
botium-Convo "messageText": "Hello, Bot!",
botium-Convo "stepTag": "Line 3",
botium-Convo "not": false,
botium-Convo "asserters": [],
botium-Convo "logicHooks": [],
botium-Convo "userInputs": []
botium-Convo } +0ms
botium-connector-botkit UserSays called { conversation:
botium-connector-botkit [ ConvoStep {
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Hello, Bot!',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 3',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'bot',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'You said: Hello, Bot!',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 6',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'give me a picture',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 9',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] },
botium-connector-botkit ConvoStep {
botium-connector-botkit sender: 'bot',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Here is a picture',
botium-connector-botkit sourceData: undefined,
botium-connector-botkit stepTag: 'Line 12',
botium-connector-botkit not: false,
botium-connector-botkit asserters: [Array],
botium-connector-botkit logicHooks: [],
botium-connector-botkit userInputs: [] } ],
botium-connector-botkit currentStepIndex: -1,
botium-connector-botkit scriptingMemory: {},
botium-connector-botkit sender: 'me',
botium-connector-botkit channel: null,
botium-connector-botkit messageText: 'Hello, Bot!',
botium-connector-botkit media: null,
botium-connector-botkit buttons: null,
botium-connector-botkit cards: null,
botium-connector-botkit forms: null,
botium-connector-botkit nlp: undefined,
botium-connector-botkit sourceData: undefined,
botium-connector-botkit sourceAction: undefined,
botium-connector-botkit attachments: null } +5ms
botium-connector-botkit constructed requestOptions {
botium-connector-botkit "uri": "http://localhost:3000/botkit/receive",
botium-connector-botkit "method": "POST",
botium-connector-botkit "json": true,
botium-connector-botkit "body": {
botium-connector-botkit "text": "Hello, Bot!",
botium-connector-botkit "user": "5c9f0727-72b3-46ac-af28-743f451330c3",
botium-connector-botkit "channel": "webhook"
botium-connector-botkit }
botium-connector-botkit } +0ms
botium-connector-botkit got error response: 404/Not Found +7ms
botium-Convo Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-Convo at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-Convo at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-Convo at Request.emit (events.js:189:13)
botium-Convo at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-Convo at Request.emit (events.js:189:13)
botium-Convo at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-Convo at Object.onceWrapper (events.js:277:13)
botium-Convo at IncomingMessage.emit (events.js:194:15)
botium-Convo at endReadableNT (_stream_readable.js:1125:12)
botium-Convo at process._tickCallback (internal/process/next_tick.js:63:19)
botium-Convo at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:292:31)
botium-Convo at process._tickCallback (internal/process/next_tick.js:68:7) +9ms
botium-bindings-main Test Case "give me picture" failed: { TranscriptError: Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-bindings-main at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-bindings-main at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-bindings-main at Object.onceWrapper (events.js:277:13)
botium-bindings-main at IncomingMessage.emit (events.js:194:15)
botium-bindings-main at endReadableNT (_stream_readable.js:1125:12)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:63:19)
botium-bindings-main at async.waterfall (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:214:25)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
botium-bindings-main at next (/home/mario/Desktop/bot/node_modules/async/dist/async.js:5329:29)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
botium-bindings-main at runConversation (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:192:15)
botium-bindings-main at async.mapSeries (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:383:9)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1140:9
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:473:16
botium-bindings-main at iterateeCallback (/home/mario/Desktop/bot/node_modules/async/dist/async.js:988:17)
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:969:16
botium-bindings-main at /home/mario/Desktop/bot/node_modules/async/dist/async.js:1137:13
botium-bindings-main at convoStepDone (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:258:11)
botium-bindings-main at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:298:15)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:68:7)
botium-bindings-main name: 'TranscriptError',
botium-bindings-main transcript:
botium-bindings-main Transcript {
botium-bindings-main steps: [ [TranscriptStep] ],
botium-bindings-main scriptingMemory: {},
botium-bindings-main convoBegin: 2019-05-27T14:22:44.261Z,
botium-bindings-main convoEnd: 2019-05-27T14:22:44.272Z,
botium-bindings-main err:
botium-bindings-main Error: give me picture/Line 3: error sending to bot Error: got error response: 404/Not Found
botium-bindings-main at Request.request [as _callback] (/home/mario/Desktop/bot/node_modules/botium-connector-botkit/dist/botium-connector-botkit-cjs.js:82:27)
botium-bindings-main at Request.self.callback (/home/mario/Desktop/bot/node_modules/request/request.js:185:22)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at Request.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1161:10)
botium-bindings-main at Request.emit (events.js:189:13)
botium-bindings-main at IncomingMessage.<anonymous> (/home/mario/Desktop/bot/node_modules/request/request.js:1083:12)
botium-bindings-main at Object.onceWrapper (events.js:277:13)
botium-bindings-main at IncomingMessage.emit (events.js:194:15)
botium-bindings-main at endReadableNT (_stream_readable.js:1125:12)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:63:19)
botium-bindings-main at scriptingEvents.setUserInput.then.then.then.then.catch (/home/mario/Desktop/bot/node_modules/botium-core/src/scripting/Convo.js:292:31)
botium-bindings-main at process._tickCallback (internal/process/next_tick.js:68:7) } } +13ms
1) give me picture
botium-connector-botkit Stop called +5ms
botium-BaseContainer Cleanup rimrafing temp dir /home/mario/Desktop/bot/botiumwork/botkit-bot-20190527-162243-Y3nh8 +0ms
Is there a Botkit Anywhere Service running on localhost ? https://github.com/howdyai/botkit-starter-web
It's deprecated
The botium connector requires botkit anywhere. Added to our backlog to adapt it for the new yeoman generator.
I installed botkit and it does not work either
"it does not work either" is not really helpful.
The log you sent shows that there is something running on localhost:3000, but the endpoint /botkit/receive, which is served by the botkit anywhere service (and only by botkit anyhwere, not by botkit itself) is not available (404 not found).
So, what would I have to do?
Nothing. Wait until we update the Botium connector, or use the deprecated Botkit Anywhere service.
Ok, thank you
New Botkit connector available https://github.com/codeforequity-at/botium-connector-botkit
Describe the bug I have created a convo file to test if the botium connector works with botkit and when I execute the command npm run mocha I give the convo error, giving me the following message: error sending to bot Error: got error response: 404 / Not Found
To Reproduce Create a convo file Execute the command: npm run mocha
Expected behavior I should say if the test has been passed or not
Screenshots
Desktop: