При попытке создать нового бота с помощью API
POST http://<my_domain>/api/v1/admin/bots
{“id”:“test”,“name”:“test”,“template”:{“id”:“welcome-bot”,“moduleId”:“builtin”}}
я получил эту ошибку
HTTP [Bots] Async request error Cannot read property ‘0’ of undefined [TypeError, Cannot read
property ‘0’ of undefined]
STACK TRACE
TypeError: Cannot read property ‘0’ of undefined
at BotsRouter. (C:\Users\sales_wowdesk_com\Downloads\botpress-master\out\bp\core\routers\admin\bots.js:78:37)
at Generator.next ()
at fulfilled (C:\Users\sales_wowdesk_com\Downloads\botpress-master\out\bp\core\routers\admin\bots.js:4:58)
at tryCatcher (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:517:31)
at Promise._settlePromise (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:574:18)
at Promise._settlePromise0 (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:619:10)
at Promise._settlePromises (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\promise.js:699:18)
at _drainQueueStep (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\async.js:138:12)
at _drainQueue (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\async.js:131:9)
at Async._drainQueues (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\sales_wowdesk_com\Downloads\botpress-master\modules\nlu\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:694:18)
at tryOnImmediate (timers.js:665:5)
at processImmediate (timers.js:647:5)
at process.topLevelDomainCallback (domain.js:121:23)