Bot published to Azure: "" is not a valid LUIS application id
See original GitHub issueDescribe 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
Browser
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Start by creating a new bot using the EmptyBot template.
- Add unknown intent trigger and add a response message.
- Switch the bot Recognizer Type to LUIS.
- Add an intent called ‘greeting’, and a few sample utterances (‘hi’, ‘hey’, ‘hello’). Add a response message.
- 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
- Copy-paste the command output json configuration into a new profile in Composer’s Publishing tab using the Azure Functions destination type.
- 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)
- 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.
- Click on Test in emulator. Test the bot, it should work well for both the ‘unknown’ and ‘greeting’ intent.
- Note that at this point in the Settings, Bot Settings the endpointKey is still empty (might be normal)*
- Now go to Publish and highlight the Azure Functions publishing profile we created earlier. Click Publish to selected profile.
- Now open the resource group we published to in Azure, navigate to the Bot Channels Registration and find Test in webchat.
- 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:
Working in the emulator:
Luis error when running in Azure:
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bartbilliet , this is a known issue and we’ve fixed in #3128 , we will release a patch version soon, will keep you posted.
@cwhitten - Thanks for that. Please close this ticket. I’ll open a new one.