Storing the date prompt from Facebook as an object returned the following error. While the same prompt works in Telegram. From the error message, it seems the date input from Facebook is a string instead of object.
How do we know what format of an input for each channel? How do we store the date prompt input for different channel specially for Facebook?
{"level":"error","f_t":"2022-05-23T23:50:01.400Z","ist_timestamp":"24 May 2022, 5:20:01 GMT+5:30","msg":{"data":"{\n \"message\": \"Expected datatype for vStartDate is object but received: string\",\n \"stack\": \"TypeError: Expected datatype for vStartDate is object but received: string\\n at BotVariables.#hasSameDatatype (/app/models/BotVariables.js:221:19)\\n at BotVariables.set (/app/models/BotVariables.js:104:30)\\n at setVariable (/app/components/builder/actions/setBotVariables.js:54:33)\\n at setBotVariablesNode (/app/components/builder/actions/setBotVariables.js:91:23)\\n at executeNormalAction (/app/components/builder/nextStep.js:714:11)\\n at executeStepActionNode (/app/components/builder/nextStep.js:979:27)\\n at nextExecutableStepNewBuilder (/app/components/builder/nextStep.js:1040:22)\\n at executeNewBuilder (/app/components/builder/nextStep.js:1125:34)\\n at nextStep (/app/components/builder/nextStep.js:1289:11)\\n at /app/models/library.js:1027:13\\n at Promise._execute (/app/node_modules/bluebird/js/release/debuggability.js:384:9)\\n at Promise._resolveFromExecutor (/app/node_modules/bluebird/js/release/promise.js:518:18)\\n at new Promise (/app/node_modules/bluebird/js/release/promise.js:103:10)\\n at afterPostValidation (/app/models/library.js:1024:18)\\n at performAction (/app/models/library.js:1472:19)\\n at runMicrotasks (<anonymous>)\\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\"\n}","tag":"Finding Next Step","sender":"5080252645400385","source":"facebook","traceId":"5080252645400385_undefined"},"botId":"x1653033611320"}