Flow/intent errors

I get the first error has mismatching quote (single and double) but I’ve changed it and verified it multiple times with no success on how to remove that error.

I have no idea how to remove the second error, I renamed a node and it keeps saying it can’t find that node (no duh, It doesnt exist anymore after I renamed it!!!)

Never had these issues before, is it because of the new update?

Sep 04 09:44:03 warn: Error processing "event.nlu.intent.name === 'test-finish"
                          Err: Invalid or unexpected token
                          Flow: Test-record.flow.json
                          Node: intentCheck-Testnode [Error, Invalid or unexpected token]
STACK TRACE
Error: Invalid or unexpected token
    at DialogEngine._reportProcessingError (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at DialogEngine.<anonymous> (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at tryCatcher (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromise0 (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:619:10)
    at Promise._settlePromises (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:695:18)
    at _drainQueueStep (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
Sep 04 09:44:12 warn: Error processing "event.nlu.intent.name === 'test-finish"
                          Err: Invalid or unexpected token
                          Flow: Test-record.flow.json
                          Node: intentCheck-Testnode [Error, Invalid or unexpected token]
STACK TRACE
Error: Invalid or unexpected token
    at DialogEngine._reportProcessingError (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at DialogEngine.<anonymous> (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at tryCatcher (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromise0 (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:619:10)
    at Promise._settlePromises (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/promise.js:695:18)
    at _drainQueueStep (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/botadmin/test-bot/modules/.cache/module__f0460efe2634a41d15f79ce9a281e0dcea6ed3e948192307108b22947e5bd31f/node_production_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
Sep 04 09:44:20 warn: Error processing "event.nlu.intent.name === 'test-finish"
                          Err: Invalid or unexpected token
                          Flow: Test-record.flow.json
                          Node: intentCheck-Testnode [Error, Invalid or unexpected token]
STACK TRACE

Error: Node not found., Bot: test-qbot, Flow: confusion-state.flow.json, Node: still-confused
    at DialogEngine._findNode (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at DialogEngine.<anonymous> (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js:0:0)
    at tryCatcher (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromise0 (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/promise.js:619:10)
    at Promise._settlePromises (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/promise.js:699:18)
    at _drainQueueStep (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/botadmin/testbot/modules/.cache/module__ca8bb497c96777fba9c2f90be2d1e69bdd032f69a7c05cb5901dff996d55bf1a/node_production_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:696:18)
    at tryOnImmediate (timers.js:667:5)
    at processImmediate (timers.js:649:5)
    at process.topLevelDomainCallback (domain.js:121:23)
Sep 05 10:30:37 error: An error occurred in the error handler. Abandoning. [Error, Flow not found.", Bot: test-qbot, Flow: error, Node: N/A]
STACK TRACE

Hey there, first error is clearly an error, there’s a single quote missing.

should be event.nlu.intent.name === 'test-finish'

Are you using the “Intent is” dropdown in the transition panel as shown im the following screenshot

35%20AM

As for the flow not found, when there’s an error, botpress now flows the user to the error flow (in flow editor you’ll see a error handling flow.) it seems like you don’t have any (this might come from migration). In this case, your error comes from condition parsing above (intent is).

In summary try to define an error handling flow and try to use the intent is dropdown in the transition panel.

I’ve already changed the intent and uses Intent is instead. I still get the same error.

For the flow, I’ve deleted the flow that it is mentioning. I’m confused why it’s still bringing that error up if that flow isn’t called anywhere or being used.

I get these errors back to back and they repeat. ‘confusion-state.flow.json’ has been removed but it still gives me this error :eyes:

2019-09-05 14:31:44errorAn unexpected error occurred. [Error, Flow not found.", Bot: test-qbot, Flow: confusion-state.flow.json, Node: N/A]
STACK TRACE
Error: Flow not found.", Bot: test-qbot, Flow: confusion-state.flow.json, Node: N/A

2019-09-05 14:31:44errorAn error occurred in the error handler. Abandoning. [Error, Flow not found.", Bot: test-qbot, Flow: error, Node: N/A]
STACK TRACE
Error: Flow not found.", Bot: qmars-qbot, Flow: error, Node: N/A