question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot publish a bot from Bot Framework Composer to Azure. TypeError - Cannot Read property 'AzureSubscriptionId' of undefined

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
krassussofficialcommented, Mar 10, 2022

I solved the problem:

The error was caused by incorrect “luisResource” parameter. Once I specified the correct one everything is working fine.

1reaction
ramfattahcommented, Feb 23, 2022

Hi @krassussofficial – I’m investigating this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure - Cannot Read property 'AzureSubscriptionId' of undefined
I was getting: TypeError - Cannot Read property 'AzureSubscriptionId' of undefined error. The bot ran locally just fine. azure · botframework ...
Read more >
Cannot read property 'error' of undefined - Microsoft Q&A
Luis build failed: Cannot read property 'error' of undefined. I opted free Azure subscription and Configured LUIS in bot composer.
Read more >
Publish a bot to Azure from Composer - Microsoft Learn
Learn how to sign in to Azure, provision and import existing Azure resources, and publish a basic bot to Azure from within Bot...
Read more >
Azure bot suddenly stopped working - Error Log:"Cannot read ...
1. The message port closed before a response was received. 2. Cannot read properties of undefined (reading 'requestedDataType') 3. DevTools ...
Read more >
Unable to publish my bot built with Bot Framework Composer
Please help or give suggestions. Thank you! Update: To be more specific, I'm trying to publish the bot to Azure Web App. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found