Composer looking for a LUIS app that doesnt exist
See original GitHub issueDescribe the bug
The composer fails to publish the bot due to this error.
“Failed to bind LUIS prediction resource…”
Version
2.1.2
Browser
- Electron distribution
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Deploy a composer build bot with LUIS
- Delete the LUIS app created(I am not exactly sure if this is what caused it)
- Redeploy the bot from composer
Expected behavior
The composer should create the new LUIS app
Screenshots
Additional context
The LUIS app the composer is looking for doesn’t exist, but it is also not clear where is the composer picking the App-Id from?
Logs
---
"{\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\":\"Error: Failed to bind luis prediction resource to luis applications. Please check if your luisResource is set to luis prediction service name in your publish profile.\\n Luis App ID: dsds-d-s-d--d2437; Luis Authoring Key: 798dsdsddsd; AzureSubscriptionID: 33dsddd69db ResourceGroup: ddddormation-platform; AccountName: ddddt-luis; Location: westeurope.\\n Response Status: 400; Error Code: BadArgument; Error Message: Cannot find an application with the ID dsdsdsd. \\n at publishLuisToPrediction (C:\\\\Program Files\\\\Bot Framework Composer\\\\resources\\\\app.asar.unpacked\\\\extensions\\\\azurePublish\\\\dist\\\\extension.js:276586:17)\",\"message\":\"Failed to bind luis prediction resource to luis applications. Please check if your luisResource is set to luis prediction service name in your publish profile.\\n Luis App ID: dsdsdsd; Luis Authoring Key: dsdsdds; AzureSubscriptionID: dssdsd ResourceGroup: gdsdsfrrfformation-platform; AccountName: dsdsdInfoBot-luis; Location: westeurope.\\n Response Status: 400; Error Code: BadArgument; Error Message: Cannot find an application with the ID fdfddfbe2fdfd. \"}"
---
---
"Error - Failed to bind luis prediction resource to luis applications. Please check if your luisResource is set to luis prediction service name in your publish profile.\n Luis App ID: fdfdfdfddf; Luis Authoring Key: 7fdfdfd2fcf8; AzureSubscriptionID: fdfdfdfb ResourceGroup: fdfdfdfation-platform; AccountName:fdfdfdfoBot-luis; Location: westeurope.\n Response Status: 400; Error Code: BadArgument; Error Message: Cannot find an application with the ID fdfdfdfd826be2437. "
---
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
Quickstart: Build your app in LUIS portal - Azure
This quickstart shows how to create a LUIS app that uses the prebuilt domain `HomeAutomation` for turning lights and appliances on and off....
Read more >Configure the pipeline to update bot services
Create a PowerShell task to update the cognitivemodels.json file stored in the artifact. Set-Content -Path "$(System.DefaultWorkingDirectory)/$(Release.
Read more >Unable to map LUIS intent while using the Bot Framework v4 ...
The V4 MessageController should rarely, if ever, change from the skeleton. In this line: await _adapter.ProcessAsync(Request, response, _bot);.
Read more >Troubleshooting - Composer
Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer.json via rm -rf vendor && composer...
Read more >Where is the intl PHP extension? Problem solved!
If the file exists: search for the config file (php.ini, usually /etc/php. · If the file doesn't exist. Check your php version by...
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
hi @saikumaru
Yeah, that seems like a mess. Sorry that you’re having to deal with that.
For the most part, with this level of discrepancy, it is suggested to remove the publishing profile and re-create using existing resources (creating any missing ones from outside Composer).
I am going to go ahead and close this, but if you are able to identify any specific bugs regarding your scenario, please comment with the details and repro steps we can reopen.
Thank you for this. Had the same issue switching a bot over from one LUIS resource to another. Can confirm deleting whole bin folder is the way to go. Just deleting folders related to the dialog causing the problem does not work.