azure - Azure 索引错误:找到没有类型名称的资源,但未指定预期类型。这是什么意思?
问题描述
我最近在删除索引以重新创建它后开始收到此错误消息。索引定义与删除的索引定义相同,因此我不明白错误的含义。
完整的错误是:
{"error":{"code":"","message":"The request is invalid. Details: indexer : A resource without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified.\r\n"}}
当我明确删除索引时,找到的“没有类型名称的资源”到底是什么?更重要的是,我该如何解决这个问题???
定义中的每个字段都有指定的名称和类型。
解决方案
已解决:该错误非常复杂且具有误导性。问题出在我使用的 Uri 中。
它是https://company-development.search.windows.net/indexers?api-version=2019-05-06
什么时候应该是https://company-development.search.windows.net/indexes?api-version=2019-05-06
我不确定我们公司 Wiki 中发布的 Url 是否包含拼写错误,或者该 Url 在之前的某个时间点是否有效,但使用正确的 Url 解决了问题。
推荐阅读
- java - JTable 从 DataModel 更改单元格背景颜色
- swift - 无法使用包含二进制目标 (xcframework) 的 Swift 包归档项目
- android - 如何使用 Picasso 将 imageView 中包含的图像保存到内部存储
- python - 登录屏幕在页面上不显示任何内容
- python - 使用 scipy 对截止频率进行建模
- java - 单击按钮时依次显示每个数组列表元素
- csv - 比较两个不同长度的 CSV 文件
- mongodb - 如何使用pymongo获取数组所有对象中特定元素的总和
- mongodb - Spring Web、Kotlin、Gradle、IntelliJ -> MongoRepository “未解决的参考:保存”问题
- azure-devops - 要求通过 Azure Pipeline 更新 Azure Function