[IcM] Unable to publish the Luis enabled bot using composer failing with "Error - Luis build failed: Cannot read property 'error' of undefined"
This is a bug from IcM ticket 333282736. When this bug is triaged, please assign the IcM ticket to the bug owner. When this bug is resolved, please resolve the IcM ticket. For customer communication, please refer to the IcM ticket.
Describe the bug
Unable to publish the Luis enabled bot using composer failing with "Error - Luis build failed: Cannot read property 'error' of undefined"
{
"stack": "Error: Luis build failed: Cannot read property 'error' of undefined\n at Builder.<anonymous> (C:\\Users\\PA20230966\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar\\\node_modules\\@bfc\\server\\build\\models\\bot\\builder.js:88:27)\n at Generator.throw (<anonymous>)\n at rejected (C:\\Users\\PA20230966\\AppData\\Local\\Programs\\Bot Framework Composer\\resources\\app.asar\\\node_modules\\@bfc\\server\\\node_modules\\tslib\\tslib.js:112:69)",
"message": "Luis build failed: Cannot read property 'error' of undefined"
}
---
---
"Error - Luis build failed: Cannot read property 'error' of undefined"
Formatted the error stack for clarity:
Error: Luis build failed: Cannot read property 'error' of undefined
at Builder.<anonymous> (C:\Users\PA20230966\AppData\Local\Programs\Bot Framework Composer\resources\app.asar\node_modules\@bfc\server\build\models\bot\builder.js:88:27)
at Generator.throw (<anonymous>)
at rejected (C:\Users\PA20230966\AppData\Local\Programs\Bot Framework Composer\resources\app.asar\node_modules\@bfc\server\node_modules\tslib\tslib.js:112:69)
Version
Browser
- [ ] Electron distribution
- [ ] Chrome
- [ ] Safari
- [ ] Firefox
- [ ] Edge
OS
- [ ] macOS
- [ ] Windows
- [ ] Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Screenshots
Able to publish the normal echo bot issue only observed with Luis bot.
intermittently getting below message when open bot.


Additional context
Eric points out that #9057 of March 17 reports a similar error: 'Error: "TypeError - Cannot read property 'findIndex' of undefined"'.
The IcM lacks any repro information. I tried a couple of scenarios and got an error, but not the error reported in the IcM:
I created a bot using the Node template Core Bot With Language. Using a publishing profile that targeted a Windows App Service, the bot deployed successfully. Using a publishing profile that targeted a Linux App Service, the bot deployment ran for more than an hour, then errored with status code 403.
Details in #9384
Unable to reproduce with a Windows App Service in C#.
As per customer, the issue was a long file path with spaces. a shorter path with no spaces resulted in successful publishing.