botium-cli errors when other json files are in the same folder
See original GitHub issueIssue Description
Describe the bug I have upgraded botium-cli to 0.0.72 and when I run I get an error:
botium-cli run
/home/static/.npm-global/lib/node_modules/botium-cli/node_modules/yargs/build/lib/yargs.js:1132
throw err;
^
SyntaxError: Unexpected token } in JSON at position 361
at JSON.parse (<anonymous>)
at CompilerJson.Deserialize (/home/static/.npm-global/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/CompilerJson.js:10:17)
at CompilerJson.Compile (/home/static/.npm-global/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/CompilerObjectBase.js:33:23)
at ScriptingProvider.Compile (/home/static/.npm-global/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:382:21)
at ScriptingProvider.ReadScript (/home/static/.npm-global/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:470:29)
at /home/static/.npm-global/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:417:71
at Array.forEach (<anonymous>)
at ScriptingProvider.ReadScriptsFromDirectory (/home/static/.npm-global/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:416:14)
at /home/static/.npm-global/lib/node_modules/botium-cli/src/run/index.js:109:14
at Array.forEach (<anonymous>)
To Reproduce Steps to reproduce the behavior.
- Install version 0.0.72
npm install -g botium-cli
- Have a service on port 5000 answering a JSON on /reply
- Use this settings botium.json:
{
"botium": {
"Capabilities": {
"PROJECTNAME": "bot-test",
"CONTAINERMODE": "simplerest",
"SCRIPTING_ENABLE_MEMORY": true,
"SIMPLEREST_URL": "http://localhost:5000/reply",
"SIMPLEREST_METHOD": "POST",
"SIMPLEREST_HEADERS_TEMPLATE": "{ \"content-type\": \"application/json; charset=utf-8\" }",
"SIMPLEREST_BODY_TEMPLATE": "{ \"message\": \"{{msg.messageText}}\", \"user_id\": \"botium\" }",
"SIMPLEREST_RESPONSE_JSONPATH": "$.reply",
"SIMPLEREST_INIT_TEXT": "reset_conversation"
},
"Sources": {},
"Envs": {}
}
}
Expected behavior Test my bot =p
Screenshots and Log files Stacktrace above, if you need more details I am happy to provide.
Botium Flavour:
- Botium Box
- Botium CLI - X
- Botium Bindings ?
Botium Version
- 0.0.72
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
User Manual - Botium documentation - Read the Docs
The Botium Crawler is command line interface to generate conversations along buttons. The simplest way you can use it from the same folder...
Read more >Getting an error while using fbwebhook connector - General
I am trying to connect my fb messenger bot through botium cli. I used this documentation for setup. Provided my webhook url in...
Read more >Getting error while executing any botium-cli command. #403
I tryied to install unicode and then I again installed botium-cli. I am still getting the same error. Please see the log below...
Read more >While running the botium cli with luis connector the getting an ...
The Botium LUIS Connector does not work with plain text - LUIS is only for intent and entity resolution. There won't be any...
Read more >botium-connector-directline3 - npm
There is 1 other project in the npm registry using ... Open the file botium.json in your working directory and add the secret:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No, Botium can read .json files, so it should not ignore those files. But it should definitely print what file caused the problem.
Fixed with latest release