尝试从Azure添加密钥时参数错误,订阅密钥无效 [英] Bad Argument, Invalid Subscription Key when trying to add key from Azure
问题描述
我正在尝试在luis.ai中设置我的LUIS应用程序(因为似乎无法直接在Azure中设置它?).无论如何,我已经创建了一种语言理解智能服务(LUIS)(预览)资源,但是当我从luis.ai的我的密钥"中输入该资源的密钥之一时,会出现以下错误:错误的参数,无效的订阅密钥"
I am trying to set up my LUIS app in luis.ai (because it seems like I can't set it up in Azure directly?). Anyway, I have created a Language Understanding Intelligent Service (LUIS) (preview) resource, but when I enter one of the keys from that resource into "My Keys" in luis.ai, I get this error: "Bad Argument, Invalid Subscription Key"
此外,我刚刚尝试使用引导程序密钥发布应用程序,但出现以下错误:
Also, I just tried to publish an app with the bootstrap key and got the following errors:
{"statusCode":401,"message":由于无效的订阅密钥,拒绝了访问.请确保为有效的订阅提供有效的密钥. }
{ "statusCode": 401, "message": "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." }
推荐答案
如注释中所述,解决方案是使用正确的端点.目前尚不清楚,但是对于luis.ai门户,我必须使用WestUS端点.
As provided in comments, the solution is to use a correct end-point. This is not clear anywhere, but for the luis.ai portal, I have to use WestUS endpoint.
如果我更改为使用eu.luis.ai,则必须使用WestEU端点.
If I change to useing eu.luis.ai, I have to use the WestEU end-point.
这篇关于尝试从Azure添加密钥时参数错误,订阅密钥无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!