botpress/botpress-api.ai

Default mode causing an error

slidenerd opened this issue · 0 comments

TypeError: Cannot read property 'startsWith' of null
    at nlp.metadata.intentName (D:\bots\zc\index.js:75:44)
    at D:\bots\zc\node_modules\botpress\lib\webpack:\src\listeners.js:13:14
    at arrayEvery (D:\bots\zc\node_modules\lodash\lodash.js:579:12)
    at Function.every (D:\bots\zc\node_modules\lodash\lodash.js:9148:14)
    at matches (D:\bots\zc\node_modules\botpress\lib\webpack:\src\listeners.js:9:12)
    at D:\bots\zc\node_modules\botpress\lib\webpack:\src\listeners.js:35:20
    at exec (D:\bots\zc\node_modules\mware\index.js:50:23)
    at next (D:\bots\zc\node_modules\mware\index.js:60:9)
    at D:\bots\zc\node_modules\botpress\lib\webpack:\src\listeners.js:48:9
    at exec (D:\bots\zc\node_modules\mware\index.js:50:23)
    at next (D:\bots\zc\node_modules\mware\index.js:60:9)
    at D:\bots\zc\node_modules\botpress\lib\webpack:\src\listeners.js:48:9
    at exec (D:\bots\zc\node_modules\mware\index.js:50:23)
    at next (D:\bots\zc\node_modules\mware\index.js:60:9)
    at D:\bots\zc\node_modules\botpress\lib\webpack:\src\listeners.js:48:9
    at exec (D:\bots\zc\node_modules\mware\index.js:50:23)
20:43:34 - warn: botpress-api.ai API Error. Could not process incoming text: Cannot read property 'startsWith' of null

My API.ai module works pretty well with the fulfillment mode but gives the above error in the default mode. Any suggestions are appreciated 👍 Thank you for the response in advance