botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
69 stars 83 forks source link

Random timeouts when using QnA module #631

Closed themakerman closed 4 years ago

themakerman commented 5 years ago

Make sure these checkboxes are checked before raising an issue, thank you!

I am mostly using JSON Channel/API channel to communicate to bot. I use postman for debugging. I see such errors randomly. This happens when dialogflow is empty and only QnA module is used.

{
    "statusCode": 500,
    "errorCode": "BP_000",
    "type": "Error",
    "message": "Unexpected error",
    "docs": "https://botpress.io/docs",
    "showStackInDev": true,
    "stack": "Error: No responses found for event target \"a\".\n    at 
EventEmitter.ConverseService._createDonePromise.exports.converseApiEvents.once.event 
(/snapshot/build-mac/out/bp/core/services/converse.js:0:0)\n    at EventEmitter.listener (/snapshot/build-mac/node_modules/eventemitter2/lib/eventemitter2.js:290:17)\n    at EventEmitter.emitAsync (/snapshot/build-mac/node_modules/eventemitter2/lib/eventemitter2.js:460:31)\n    at Botpress.<anonymous> (/snapshot/build-mac/out/bp/core/botpress.js:0:0)\n    at Generator.next (<anonymous>)\n    at fulfilled (/snapshot/build-mac/out/bp/core/botpress.js:0:0)\n    at tryCatcher (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/promise.js:614:10)\n    at Promise._settlePromises (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/promise.js:694:18)\n    at _drainQueueStep (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/async.js:138:12)\n    at _drainQueue (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/async.js:131:9)\n    at Async._drainQueues (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/async.js:147:5)\n    at Immediate.Async.drainQueues [as _onImmediate] (/Users/gauravharchwani/projects/task_bot/modules/.cache/module__37000b493c9bbd65f10af4ae18d0bde0a7bbd09c7072c453591135db8855feaf/node_production_modules/bluebird/js/release/async.js:17:14)\n    at runCallback (timers.js:696:18)\n    at tryOnImmediate (timers.js:667:5)\n    at processImmediate (timers.js:649:5)\n    at process.topLevelDomainCallback (domain.js:121:23)",
    "full": "No responses found for event target \"a\"."
}

However after sending the request again i get correct response. This happens everytime botpress is left idle for some time. Maybe 10min+.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.