botium-core icon indicating copy to clipboard operation
botium-core copied to clipboard

Capability with number given as string type is updated to a different number

Open abhilashkasula opened this issue 3 months ago • 0 comments

Describe the bug Any Capability with a value of long number more than 16 digits in string format is updated to a different number.

To Reproduce

  1. Install botium-cli and botium-connector-fbwebhook
  2. Clone the botium-connector-fbwebhook repo and start the sample botkit server
  3. Use the following given botium.json
  4. Start the emulator in verbose mode using botium-cli emulator -v
  5. Send a message and observer the payload that the emulator sent. The sender.id would be of different number than what we have set in the botium.json
{
  "botium": {
    "Capabilities": {
      "PROJECTNAME": "Facebook Tests",
      "CONTAINERMODE": "fbwebhook",
      "FBWEBHOOK_WEBHOOKURL": "http://127.0.0.1:3000/api/messages",
      "FBWEBHOOK_PAGEID": "123456",
      "FBWEBHOOK_APPSECRET": "mysecret",
      "SIMPLEREST_INBOUND_PORT": 45100,
      "SCRIPTING_MATCHING_MODE": "equals",
      "FBWEBHOOK_USERID": "1234567892343434344"
    }
  }
}

Expected behavior The payload sent should have same sender.id that we set using FBWEBHOOK_USERID in the botium.json

Screenshots and Log files botium-cli emulator logs: log.txt

Botium Flavour:

  • Botium Box ?
  • Botium CLI ? - Yes
  • Botium Bindings ? - Yes

Botium Version The bug exists in the latest version(1.15.6) of botium-core.

abhilashkasula avatar Oct 31 '25 12:10 abhilashkasula