Azure表格“;删除“;“返回”;“输入无效”;
我不知道我做错了什么。根据文档()我的Azure表格“;删除“;“返回”;“输入无效”;,azure,azure-table-storage,Azure,Azure Table Storage,我不知道我做错了什么。根据文档()我的DELETE请求是否有效 GET请求工作正常,即: curl -X GET "https://foo.table.core.windows.net/bar(PartitionKey='alice',RowKey='bob')?sv=2017-04-17&ss=qt&srt=o&sp=rwdlacup&se=2021-08-22T23:33:21Z&st=2017-08-01T15:33:21Z&sip=10.1
DELETE
请求是否有效
GET
请求工作正常,即:
curl -X GET "https://foo.table.core.windows.net/bar(PartitionKey='alice',RowKey='bob')?sv=2017-04-17&ss=qt&srt=o&sp=rwdlacup&se=2021-08-22T23:33:21Z&st=2017-08-01T15:33:21Z&sip=10.10.10.0-10.10.10.255&spr=https&sig=SECRET_SQUIRREL"
返回数据。没问题。所有内容都显示正确
如果我随后将-X GET
更改为-X DELETE
,其他内容保持不变,即:
curl -X DELETE "https://foo.table.core.windows.net/bar(PartitionKey='alice',RowKey='bob')?sv=2017-04-17&ss=qt&srt=o&sp=rwdlacup&se=2021-08-22T23:33:21Z&st=2017-08-01T15:33:21Z&sip=10.10.10.0-10.10.10.255&spr=https&sig=SECRET_SQUIRREL"
服务返回:
<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>InvalidInput</code><message xml:lang="en-US">One of the request inputs is not valid.
RequestId:5d3bce31-0002-0054-4b18-1cba44000000
Time:2017-08-23T14:02:00.3177321Z</message></error>
根据的文档,您缺少
If Match
请求标头。从文档链接:
请在请求中包含
If Match
标题,其值为*
,请求应该可以工作。根据的文档,您缺少If Match
请求标题。从文档链接:
请在请求中包含如果匹配标题,其值为*
,请求应该有效