Cannot publish a bot from Bot Framework Composer to Azure. TypeError - Cannot Read property 'AzureSubscriptionId' of undefined
See original GitHub issueDescribe the bug
I am unable to publish my bot from Composer to Azure. I’m getting:
TypeError - Cannot Read property ‘AzureSubscriptionId’ of undefined
The bot builds locally just fine.
In the publishing profile the subscription ID has been correctly specified.
Version
2.1.2
Browser
- Electron distribution
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Bot publishes to my Azure subscription.
Screenshots
Additional context
I have been able to publish the bot previously but I had to change LUIS to a new one. After substituting the following variables in the publishing profile:
- “luisResource”
- “luis”“authoringKey”
- “luis”“endpointKey”
I am getting the error above.
LOGS:
` “Accepted for publishing…”
“Abs settings incomplete, skip linking bot with webapp …”
“appPasswordHint incomplete, return …”
“Building the bot app…”
“Build succeeded!”
“start publish luis”
“Assigning to luis app id: 4667de23-fce7-4693-bfd6-dc2e02e694d4”
“{\n "stack": "Error: Request failed with status code 400\n at createError (C:\\Program Files\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:105969:17)\n at settle (C:\\Program Files\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:105983:14)\n at IncomingMessage.handleStreamEnd (C:\\Program Files\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:106970:13)\n at IncomingMessage.emit (events.js:215:7)\n at endReadableNT (_stream_readable.js:1183:12)\n at processTicksAndRejections (internal/process/task_queues.js:80:21)",\n "message": "Request failed with status code 400",\n "config": {}\n}”
“{"stack":"TypeError: Cannot read property ‘AzureSubscriptionId’ of undefined\n at publishLuisToPrediction (C:\\Program Files\\Bot Framework Composer\\resources\\app.asar.unpacked\\extensions\\azurePublish\\dist\\extension.js:276585:133)","message":"Cannot read property ‘AzureSubscriptionId’ of undefined"}”
“TypeError - Cannot read property ‘AzureSubscriptionId’ of undefined” `` `
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10
Top GitHub Comments
I solved the problem:
The error was caused by incorrect “luisResource” parameter. Once I specified the correct one everything is working fine.
Hi @krassussofficial – I’m investigating this.