odata - Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmType:System.IndexOutOfRangeException:索引超出了数组的范围
问题描述
我们的服务使用 ODataV4 调用其他服务。我们偶尔会在生产中看到以下异常。我们正在进行 GET 调用。您能否建议我们应该验证/检查什么是导致此错误的根本原因?我们使用的是 6.16 版本的 OData.Client
System.IndexOutOfRangeException:索引超出了数组的范围。在 System.Collections.Generic.List 1.Enumerator.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 源,Func2 predicate) at Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmTypeInternal(IEdmStructuredType edmBaseType, Type type, PropertyInfo[] keyProperties, Boolean isEntity, Nullable
1 hasProperties) 在 Microsoft.OData.Client.ClientEdmModel.GetOrCreateEdmType(Type type) 在 Microsoft.OData.Client.Materialization.ODataMaterializer.CreateMaterializerForMessage(IODataResponseMessage responseMessage, ResponseInfo responseInfo,在 Microsoft.OData.Client.MaterializeAtom..ctor(ResponseInfo responseInfo, QueryComponents queryComponents, ProjectionPlan plan, IODataResponseMessage responseMessage, ODataPayloadKind payloadKind) 在 Microsoft.OData.Client.QueryResult.CreateMaterializer( Microsoft.OData.Client.QueryResult.ProcessResult[TElement] 上的 ProjectionPlan 计划,ODataPayloadKind payloadKind)(Microsoft.OData.Client 上的 ProjectionPlan 计划)。Microsoft.Management.Services.OData.Client.ODataServiceContextV4 中 Microsoft.OData.Client.DataServiceContext.EndExecute[TElement](IAsyncResult asyncResult) 中的 DataServiceRequest.EndExecute[TElement](对象源、DataServiceContext 上下文、字符串方法、IAsyncResult asyncResult)。< >c__DisplayClass45_0`1.b__1(IAsyncResult 结果)
解决方案
推荐阅读
- reactjs - 无法在反应中显示获取的 API 数据
- python - sqlalchemy .commit() 非常慢
- airflow - 等待 Apache Airflow 中上次运行的所有下游任务
- c# - 使用 Linux 操作系统的 Azure Web 部署导致未经授权的令牌错误
- sql-server - 差距和岛屿
- file - Blazor 服务器生成文件并将其下载到用户客户端
- python - 如何修改matplotlib导航的图标
- python - 将值传递给下一个函数
- asp.net - 在 ASP.NET MVC 5.0 中工作的路由代码在 5.2 中不再工作
- html - HTML 视频在烧杯浏览器 (P2P) 中不起作用