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.

Publish LUIS bot failure

See original GitHub issue

Describe the bug

Unable to deploy a LUIS bot.

Version

Various versions:

  • Release: 1.1.1.
  • git main checkout ``

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior: https://docs.microsoft.com/en-us/composer/how-to-publish-bot

Our config:

  • ToDoBotWithLuisSample without any changes
  • Azure Resources in westeurope

Expected behavior

Deploy bot succesfully.

Screenshots

Screenshot from 2020-10-21 16-41-14

Additional context

{
  "status": "DEPLOY_INFO",
  "message": "start publish luis"
}
{
  "status": "DEPLOY_ERROR",
  "message": "{\"name\":\"StatusCodeError\",\"statusCode\":429,\"message\":\"429 - \\\"{\\\\\\\"error\\\\\\\":{\\\\\\\"code\\\\\\\":\\\\\\\"429\\\\\\\",\\\\\\\"message\\\\\\\": \\\\\\\"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\\\\\\\"}}\\\"\",\"error\":\"{\\\"error\\\":{\\\"code\\\":\\\"429\\\",\\\"message\\\": \\\"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\\\"}}\",\"options\":{},\"response\":{\"statusCode\":429},\"stack\":\"StatusCodeError: 429 - \\\"{\\\\\\\"error\\\\\\\":{\\\\\\\"code\\\\\\\":\\\\\\\"429\\\\\\\",\\\\\\\"message\\\\\\\": \\\\\\\"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\\\\\\\"}}\\\"\\n    at new StatusCodeError (/var/home/kunta/Work/fts/BotFramework-Composer/extensions/azurePublish/node_modules/request-promise-core/lib/errors.js:32:15)\\n    at Request.plumbing.callback (/var/home/kunta/Work/fts/BotFramework-Composer/extensions/azurePublish/node_modules/request-promise-core/lib/plumbing.js:104:33)\\n    at Request.RP$callback [as _callback] (/var/home/kunta/Work/fts/BotFramework-Composer/extensions/azurePublish/node_modules/request-promise-core/lib/plumbing.js:46:31)\\n    at Request.self.callback (/var/home/kunta/Work/fts/BotFramework-Composer/extensions/azurePublish/node_modules/request/request.js:185:22)\\n    at Request.emit (events.js:315:20)\\n    at Request.<anonymous> (/var/home/kunta/Work/fts/BotFramework-Composer/extensions/azurePublish/node_modules/request/request.js:1154:10)\\n    at Request.emit (events.js:315:20)\\n    at IncomingMessage.<anonymous> (/var/home/kunta/Work/fts/BotFramework-Composer/extensions/azurePublish/node_modules/request/request.js:1076:12)\\n    at Object.onceWrapper (events.js:421:28)\\n    at IncomingMessage.emit (events.js:327:22)\\n    at endReadableNT (_stream_readable.js:1220:12)\\n    at processTicksAndRejections (internal/process/task_queues.js:84:21)\"}"
}

Closed related issues #4392.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nitroincommented, Oct 28, 2020

@nitroin the activity you have available to you in LUIS is governed by your pricing tier. the TodoWithLuis bot includes multiple LUIS applications that get created when you publish, and is better suited to use a paid pricing tier (and associated authoring keys) for general use.

Yep, I understand, but please take note that this is exactly our scenario.

By default the provision script deploy 2 LUIS resources:

  1. Authoring endpoint (free tier, the only available)
  2. Non-authoring endpoint (I think we can call it prediction endpoint? - S0 pay as you go tier)

When clicking Publish from Composer (using the app manifest from the provision steps) we cannot select which endpoint to call, thus the 429 rate limit error.

Sometimes purging the entire LUIS authoring resource seems to allow us to successfully deploy the bot, but this looks impractical, and not reliable since we are facing 429 errors also from an empty LUIS account sometimes.

Since the Composer is hitting 429, will be great if the scripts that interface with LUIS implements some kind of retry logic to minimize those errors users are facing (and that we cannot fix).

I’ll be open to try experimenting with a PR if minimal hints are provided.

0reactions
nitroincommented, Dec 2, 2020

Of course, thank you @luhan2017.

See here:

Publish starting...
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/3-first-visit.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/3_1-first-visit_accomodation.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/3_2-first-visit_nav.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/3_2-first_visit_where.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/3_3-first-visit_have.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/4-stroke-center-infos.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/5-waiting-for.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/6-centers-map.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/8-nutrition.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/ScenarioList.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/SportActivities.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/SportTeam.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/UserProfile.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/Welcome.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/fts-bot-tom.it-it.lu loaded\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/ScenarioList.it-it.lu no changes\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/SportTeam.it-it.lu no changes\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/UserProfile.it-it.lu no changes\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/SportActivities.it-it.lu no changes\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "/Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/interruption/fts-bot-tom.it-it.lu no changes\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/ScenarioList.it-it.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/SportActivities.it-it.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/SportTeam.it-it.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/UserProfile.it-it.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/fts-bot-tom.it-it.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/ScenarioList.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/SportActivities.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/SportTeam.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/UserProfile.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/fts-bot-tom.lu.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/3-first-visit.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/3_1-first-visit_accomodation.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/3_2-first-visit_nav.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/3_2-first_visit_where.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/3_3-first-visit_have.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/4-stroke-center-infos.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/5-waiting-for.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/6-centers-map.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/8-nutrition.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/ScenarioList.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/SportActivities.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/SportTeam.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/UserProfile.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/Welcome.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/fts-bot-tom.lu.qna.dialog\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "Writing to /Users/redacted/BotFrameworkComposer/publishBots/87b4a0ada1c721a252f817e75bb0f88f/azurewebapp/ComposerDialogs/generated/luis.settings.dev.westeurope.json\n"
}
{
  "status": "DEPLOY_INFO",
  "message": "lubuild succeed"
}
{
  "status": "DEPLOY_INFO",
  "message": "start publish luis"
}
{
  "status": "DEPLOY_ERROR",
  "message": "{\"name\":\"StatusCodeError\",\"statusCode\":429,\"message\":\"429 - \\\"{\\\\\\\"error\\\\\\\":{\\\\\\\"code\\\\\\\":\\\\\\\"429\\\\\\\",\\\\\\\"message\\\\\\\": \\\\\\\"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\\\\\\\"}}\\\"\",\"error\":\"{\\\"error\\\":{\\\"code\\\":\\\"429\\\",\\\"message\\\": \\\"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\\\"}}\",\"options\":{},\"response\":{\"statusCode\":429},\"stack\":\"StatusCodeError: 429 - \\\"{\\\\\\\"error\\\\\\\":{\\\\\\\"code\\\\\\\":\\\\\\\"429\\\\\\\",\\\\\\\"message\\\\\\\": \\\\\\\"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\\\\\\\"}}\\\"\\n    at new r (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/lib/index.js:2:3724051)\\n    at q.callback (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/lib/index.js:2:3726040)\\n    at q.e.callback.t.callback [as _callback] (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/lib/index.js:2:3725088)\\n    at q.t._callback.t.callback.t.callback (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/lib/index.js:2:3755134)\\n    at q.emit (events.js:210:5)\\n    at q.<anonymous> (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/lib/index.js:2:3767714)\\n    at q.emit (events.js:210:5)\\n    at IncomingMessage.<anonymous> (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/lib/index.js:2:3766546)\\n    at Object.onceWrapper (events.js:299:28)\\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)\"}"
}
429 - "{\"error\":{\"code\":\"429\",\"message\": \"Requests to the user - Get LUIS azure accounts Operation under LUIS Programmatic APIs v2.0 have exceeded rate limit of your current LUIS.Authoring F0 pricing tier. Please retry after 1 second. To increase your rate limit switch to a paid tier.\"}}"

And for reference, our princings configurations (defaults):

image

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while publishing bot - Failed to bind luis prediction ...
Publishing bot to Azure intermittently ends with the following error: Error - Failed to bind luis prediction resource to luis applications.
Read more >
Cannot read property 'error' of undefined - Microsoft Q&A
Luis build failed: Cannot read property 'error' of undefined. Sorry, something went wrong with publishing. Try again or exit out of this task....
Read more >
Bot framework composer not able to publish to Azure LUIS error
I have the same error. I put the luisResource property in the publish file but the same error keeps getting. Any other idea?...
Read more >
10 - Add LUIS to your bot Composer - YouTube
This video will explain how to integrate language understanding in your bot using the cloud-based service LUIS . LUIS lets your bots ......
Read more >
Known issues - Microsoft Open Source
HTTP 401 Error when invoking a Skill ... Validate your parent Bot (e.g. Virtual Assistant) appSettings.json file has a correctly populated botFrameworkSkills ......
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