BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

[IcM] Unable to publish the Luis enabled bot using composer failing with "Error - Luis build failed: Cannot read property 'error' of undefined"

Open compulim opened this issue 3 years ago • 3 comments

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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.

image

image

Additional context

compulim avatar Sep 09 '22 17:09 compulim

Eric points out that #9057 of March 17 reports a similar error: 'Error: "TypeError - Cannot read property 'findIndex' of undefined"'.

BruceHaley avatar Sep 16 '22 01:09 BruceHaley

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

BruceHaley avatar Sep 16 '22 01:09 BruceHaley

Unable to reproduce with a Windows App Service in C#.

anishprasad01 avatar Sep 16 '22 15:09 anishprasad01

As per customer, the issue was a long file path with spaces. a shorter path with no spaces resulted in successful publishing.

anishprasad01 avatar Oct 10 '22 15:10 anishprasad01