我正在尝试使用表api进行读取:
table.ExecuteQuerySegmentedAsync<Translation>(query, null);
并收到以下异常:
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred.
Source=mscorlib
StackTrace:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at net471.CosmosTableConnector.ConnectAndFetch() in C:\tfs\ccc\aaa\Sandbox\CosmosDbTesting\net471\Connector.cs:line 36
at net471.Program.Main(String[] args) in C:\tfs\ccc\aaa\Sandbox\CosmosDbTesting\net471\Program.cs:line 13
Inner Exception 1:
StorageException: The specified resource does not exist.
Inner Exception 2:
DocumentClientException: Message: {"Errors":["Resource Not Found"]}
ActivityId: 220097a1-01cc-4951-b25d-2a2644135aab, Request URI: /apps/e2d7c0d5-8678-47d6-b842-91e909692f60/services/9e9e5a2f-7c9e-4082-a4db-018eb3c227a0/partitions/cd116764-d505-47d8-95e2-71d69388d615/replicas/131885394411832689s, RequestStats:
RequestStartTime: 2018-12-06T14:54:49.8548989Z, Number of regions attempted: 1
ResponseTime: 2018-12-06T14:54:49.8548989Z, StoreReadResult: StorePhysicalAddress: rntbd://10.0.0.21:13700/apps/e2d7c0d5-8678-47d6-b842-91e909692f60/services/9e9e5a2f-7c9e-4082-a4db-018eb3c227a0/partitions/cd116764-d505-47d8-95e2-71d69388d615/replicas/131885394411832689s, LSN: 61, GlobalCommittedLsn: 61, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, IsGone: False, IsNotFound: True, IsInvalidPartition: False, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#61, ResourceType: Collection, OperationType: Read
ResponseTime: 2018-12-06T14:54:49.8548989Z, StoreReadResult: StorePhysicalAddress: rntbd://10.0.0.25:13700/apps/e2d7c0d5-8678-47d6-b842-91e909692f60/services/9e9e5a2f-7c9e-4082-a4db-018eb3c227a0/partitions/cd116764-d505-47d8-95e2-71d69388d615/replicas/131884028811882491s, LSN: 61, GlobalCommittedLsn: 61, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, IsGone: False, IsNotFound: True, IsInvalidPartition: False, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#61, ResourceType: Collection, OperationType: Read
, SDK: Microsoft.Azure.Documents.Common/2.2.0.0
此异常是什么意思?
如何使用表api从Cosmos中读取数据?