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.

Bot published to Azure: "" is not a valid LUIS application id

See original GitHub issue

Describe the bug

I have a very basic bot, created in Composer with Luis as Recognizer Type:

  • It works when running the bot locally in the emulator.
  • After publishing the bot to Azure, I always get following in the webchat: “” is not a valid LUIS application id.

Version

image

Browser

  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Start by creating a new bot using the EmptyBot template.
  2. Add unknown intent trigger and add a response message.
  3. Switch the bot Recognizer Type to LUIS.
  4. Add an intent called ‘greeting’, and a few sample utterances (‘hi’, ‘hey’, ‘hello’). Add a response message.
  5. Deploy the required Azure infrastructure as such (replaced secrets by ***):
    npm install
    node provisionComposer.js --subscriptionId=*** --name=Prefix-EmptyBot2 --appPassword=*** --environment=Dev --location=westeurope --customArmTemplate=DeploymentTemplates/function- template-with-preexisting-rg.json
    
  6. Copy-paste the command output json configuration into a new profile in Composer’s Publishing tab using the Azure Functions destination type.
  7. In Composer, in Settings, Bot Settings, change authoringRegion to “westeurope”. (Sidenote: we do this here in settings, as the next action in step 8 does not let us modify the region, region is fixed to westus and grayed out)
  8. Go back to Design Flow click on Start Bot. Copy the authoringKey from the Json received in step 5 in the LUIS Primary key field.
  9. Click on Test in emulator. Test the bot, it should work well for both the ‘unknown’ and ‘greeting’ intent.
  10. Note that at this point in the Settings, Bot Settings the endpointKey is still empty (might be normal)*
  11. Now go to Publish and highlight the Azure Functions publishing profile we created earlier. Click Publish to selected profile.
  12. Now open the resource group we published to in Azure, navigate to the Bot Channels Registration and find Test in webchat.
  13. Test the bot again. Both unknown & greeting intents will fail with : “” is not a valid LUIS application id

Expected behavior

Once deployed in Azure, the bot should be able to get the Luis application ID, so it can recognize the intent.

Screenshots

Simple bot dialog:

image

image

Working in the emulator:

image

Luis error when running in Azure:

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
luhan2017commented, Jun 1, 2020

@bartbilliet , this is a known issue and we’ve fixed in #3128 , we will release a patch version soon, will keep you posted.

0reactions
srinivasnarulacommented, Jan 5, 2021

@cwhitten - Thanks for that. Please close this ticket. I’ll open a new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bot published to Azure: "" is not a valid LUIS application id
Created project using OOB sample (QnAMakerSample) in BOT Composer It is not working locallu and even after publishing the bot to Azure, ...
Read more >
Troubleshooting Bot Framework Authentication - Bot Service
Learn how to troubleshoot bot authentication errors, such as connectivity issues and problems with app IDs and passwords.
Read more >
c# - '"southeastasia" is not a valid LUIS endpoint.'
Hi Oyen! I'm unable to reproduce this, because my LUIS app is automatically created in westus. However, in the new v4 LUIS sample...
Read more >
azurerm_bot_web_app | Resources | hashicorp/azurerm
location - (Required) The supported Azure location where the resource exists. ... luis_key - (Optional) The LUIS key to associate with the Web...
Read more >
Known issues - Microsoft Open Source
The information in this documentation is not guaranteed to work for Bot ... message as shown: Exception Message: Error invoking the skill id:...
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