Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

botium-cli errors when other json files are in the same folder

See original GitHub issue

Describe the bug I have upgraded botium-cli to 0.0.72 and when I run I get an error:

botium-cli run
                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.

  1. Install version 0.0.72 npm install -g botium-cli
  2. Have a service on port 5000 answering a JSON on /reply
  3. Use this settings botium.json:
  "botium": {
    "Capabilities": {
      "PROJECTNAME": "bot-test",
      "CONTAINERMODE": "simplerest",
      "SIMPLEREST_URL": "http://localhost:5000/reply",
      "SIMPLEREST_HEADERS_TEMPLATE": "{ \"content-type\": \"application/json; charset=utf-8\" }",
      "SIMPLEREST_BODY_TEMPLATE": "{ \"message\": \"{{msg.messageText}}\", \"user_id\": \"botium\" }",
      "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:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

codeforequity-atcommented, Jul 25, 2020

No, Botium can read .json files, so it should not ignore those files. But it should definitely print what file caused the problem.

codeforequity-atcommented, Aug 13, 2020

Fixed with latest release

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found