我们正试图通过CORS查询Azure表存储表,需要检索1000多个实体。请求发送到一个分区键,但行键的范围是这样的(URL被分解以便于阅读):
https://cloudmonixxxxxx.table.core.windows.net/ResourceMetric10MinSummaryEntity201506?sv=2014-02-14
&tn=ResourceMetric10最小汇总实体201506
&spk=a9c3c851-b8d7-4136-9783-20c08e89b897_eb2038bf-94bd-4005-afd-3a214a1560c_1aab823f-3d23-4a8a-b715-203d271156aa
&srk=0000000 2519673047999999999_00000000-0000-0000-0000-00000000
&epk=a9c3c851-b8d7-4136-9783-20c08e89b897_eb2038bf-94bd-4005-afd-3a214a1560c_1aab823f-3d23-4a8a-b715-203d271156aa
&erk=0000000 2519673917999999999_
&sig=6xxxxxxxxxxxxx。。xxxxxxxxxxxx r
表存储在响应标头中返回1000个实体和相关的连续令牌:
访问控制暴露Hea…:x-ms-request-id,服务器,x-ms-version,x-Content-Type-Options,缓存控制,x-ms-contination-NextPartitionKey,x-ms_contination-Next RowKey,内容类型x-ms-contination-NextPar…:1.148!YTljM2M4NTEtYjhkNy00xxxxxxxxMjAzOGJmLTk0YmQtNDAwNS1hYWZkLTNhMjEyngexNTYwY18xYWFiODizZi0zZDIzLTRhOGEtYjcxNS0yMDNkMjcxMTU2YWE-x-ms-contination-NextRow…:1.84!MDAwMDAwMDI1MTk2NzM0NxxxxxxxxxxxxxWFiYjgtNzRiMi00ZWNmLTgzMjMtNzg2ZGM1NjdkNThhx-ms-request-id:a528c9be-0002-008d-1f1b-ad8a6b000000x-ms-版本:2014-02-14
根据这篇文章https://msdn.microsoft.com/en-us/library/azure/dd135718.aspx我们正在形成延续请求。然而,当我们发出如下的继续请求时(为了更容易阅读,将其分解),响应返回为ResourceNotFound
https://cloudmonixxxxxxxxxx.table.core.windows.net/ResourceMetric10MinSummaryEntity201506?
NextPartitionKey=1!148!YTljM2M4NTEtYjhkNy00MTM2LTk3ODMjBjMDhlODliODk3X2ViMjAzOGJmLTk0YmQtNDAwNxxxxxxxxxxxxxiODIzZi0zZDIzLTRhOGEtYjcxNS0yMDNkMjcxMTU2YWE-
&NextRowKey=1!84!MDAwMDAwMDIxxxxxxxxxxxxxzgyMWFiYjgtNzRiMi00ZWNmLTgzMjMtNzg2ZGM1NjdkNThh
有什么建议吗?
您收到ResourceNotFound
错误的原因是您的第二个请求中不包括SAS令牌。所以你的第二个请求URL应该是你的第一个请求URL+NextPartitionKey+NextRowKey:
https://cloudmonixxxxxx.table.core.windows.net/ResourceMetric10MinSummaryEntity201506?<sas-token-parameters>&NextPartitionKey=<next-partition-key>&NextRowKey=<next-row-key>
尝试一下,就会奏效。