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.

Composer looking for a LUIS app that doesnt exist

See original GitHub issue

Describe the bug

The composer fails to publish the bot due to this error. image

“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:

  1. Deploy a composer build bot with LUIS
  2. Delete the LUIS app created(I am not exactly sure if this is what caused it)
  3. 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:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
dmvtechcommented, Mar 14, 2022

hi @saikumaru

Effectively the release and debug folders(named “generated”) had two apps with their App-Ids in the json, both of which dint exist on the portal.

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.

0reactions
dweeb1937commented, Sep 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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