英文:
Luis build failed: An application with the same name("name") already exist
问题
我在Bot Composer版本2.1.2中遇到问题。
如标题所述,当我尝试构建我的机器人时,出现以下错误:“Luis构建失败:已存在具有相同名称(“name”)的应用程序”(其中“name”是虚构的)。
我的机器人有多种语言,因此当我从Composer构建机器人时,在LUIS门户中会为每种语言创建一个应用程序(例如,如果机器人具有意大利语、英语和西班牙语,我会在LUIS门户中找到为每种语言和对话框创建的3个应用程序)。
我可以通过删除LUIS门户中找到的各个应用程序,然后从Composer重新构建机器人来修复此错误(这不是最佳解决方案),但如果稍后在Composer上进行更改并重新构建机器人,错误会再次发生。
此错误是随机的,有一次会给我一个应用程序的错误,如果我进行第二次构建,那么下一次会给我另一个应用程序的错误(一次我有这个错误:“Luis构建失败:已存在具有相同名称(“name”)的应用程序”,下一次我有这个错误:“Luis构建失败:已存在具有相同名称(“other_name”)的应用程序”)。
有人遇到过这个问题吗?
英文:
I have a problem with the Bot Composer version 2.1.2.
As I wrote in the title, when I try to build my bot, I have this error: "Luis build failed: An application with the same name("name") already exist" (where "name" is invented).
My bot has multiple languages, so when I build the bot from composer, in the LUIS portal I have an app that is created for all the languages (Example: if the bot have italian, english and spanish languages , in the LUIS portal I'll find 3 app for each languages and dialogs).
I can fix this error deleting the various app that i find in the LUIS portal and then re-build the bot from the composer (it's not an optimal solution), but, if in a second moment I make changes on the composer and build the bot, the error occur again.
This error is random, once it gives me error for one application, if I do a second build the error it gives me is for another application (once I have this: "Luis build failed: An application with the same name("name") already exist", next time I have this: "Luis build failed: An application with the same name("other_name") already exist").
Has anyone already encountered this problem?
答案1
得分: 0
已解决
我在Bot Composer中发现了一个错误,准确地说,当Composer进行这个API调用时:
问题在于在这个API调用中,API返回的最大应用程序数量是100,但如果您的应用程序超过这个数量,Composer会尝试创建缺失的应用程序,然后返回错误信息“已存在具有相同名称(“名称”)的应用程序”,因为在LUIS门户中该应用程序已存在。
第一个屏幕截图显示了所有应用程序的API调用。
第二个屏幕截图表示通过Notepad++执行的API调用响应JSON中有多少个应用程序。正如我们所见,数量是100。
第一个屏幕截图显示了所有应用程序的API调用。
第二个屏幕截图表示通过Notepad++执行的API调用响应JSON中有多少个应用程序。正如我们所见,数量是100。
英文:
RESOLVED
I found a bug in Bot Composer, precisely, when the Composer makes this API call:
the problem here is that in this API call the max number of app that the API return is 100 but if you have more than that, the Composer try to create the ones that missing and then return the error "An application with the same name("name") already exist" because in the LUIS portal that app exists.
The first screenshot is the API calls for all the app
The second screenshot represent a search doing with notepad++ of how many app the response JSON of the API call returns. As we can see, the count is 100.
The first screenshot is the API calls for all the app.
The second screenshot represent a search doing with notepad++ of how many app the response JSON of the API call returns. As we can see, the count is 100.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论