2017-08-23 8 views
0

ここで間違っていることを理解できません。ドキュメント(https://docs.microsoft.com/en-us/rest/api/storageservices/delete-entity1)によると私のDELETEリクエストは機能しているはずですか?Azureテーブル「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 DELETE-X GETを変更して、同一の他のすべてを残す場合:

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" 

サービスリターン:Delete Entityのドキュメントに基づいて

<?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> 

答えて

2

、あなたはIf-Matchリクエストヘッダが欠落しています。ドキュメントのリンクから:

enter image description here

*としての価値を持つあなたの要求にIf-Matchヘッダーが含まれており、要求が動作するはずですしてください。

関連する問題