Azure Blob Starage -REST API -400请求输入之一无效
我试图通过批处理请求从Azure Blob存储中删除斑点。 目前,我正在使用Postman在应用程序中使用该请求。 我无法设法获得不同的输出或错误。为了授权,我使用SAS。
这是我的要求:
url: https://applicationname.blob.core.windows.net/mycontainer?Restype = container& comp; comp = batch&sig = signature&signature&sp; sp = racwdl&sip; SIP ST = 2022-04-27T08:52:29Z& spr = https& se = 2022-05-30T16:52:29z& sr = c
标题:
Content-Type: multipart/mixed; boundary=batch_357de4f7-6d0b-4e02-8cd2-6361411a9525
x-ms-version: 2020-08-04
正文:< /strong>
--batch_357de4f7-6d0b-4e02-8cd2-6361411a9525
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 0
DELETE /MYCONTAINER/NAVIGATIONS.sql?sp=racwdl&sig=SIGNATURE&sip=92.60.9.18&sv=2020-08-04&st=2022-04-27T08:52:29Z&spr=https&se=2022-05-30T16:52:29Z&sr=c HTTP/1.1
Content-Length: 0
--batch_357de4f7-6d0b-4e02-8cd2-6361411a9525--
响应:
--batchresponse_cdb19852-af76-4719-b9d2-8d61b5d3e6da
Content-Type: application/http
HTTP/1.1 400 One of the request inputs is not valid.
x-ms-error-code: InvalidInput
x-ms-request-id: 4dd49405-d01e-0035-12c4-601f12000000
x-ms-version: 2020-08-04
Content-Length: 221
Content-Type: application/xml
Server: Windows-Azure-Blob/1.0
<?xml version="1.0" encoding="utf-8"?>
<Error><Code>InvalidInput</Code><Message>One of the request inputs is not valid.
RequestId:4dd49405-d01e-0035-12c4-601f12000000
Time:2022-05-05T21:07:45.5349988Z</Message></Error>
--batchresponse_cdb19852-af76-4719-b9d2-8d61b5d3e6da--
我希望有人可以给我提示或解决方案。
I am trying to delete a blob from an Azure Blob Storage with a batch request.
At the moment I am using postman to verify my request before I use it in my application.
I cannot manage to get a different output or error. For authorization I use SAS.
Here is my request:
Url:https://APPLICATIONNAME.blob.core.windows.net/MYCONTAINER?restype=container&comp=batch&sig=SIGNATURE&sp=racwdl&sip=92.60.9.18&sv=2020-08-04&st=2022-04-27T08:52:29Z&spr=https&se=2022-05-30T16:52:29Z&sr=c
Headers:
Content-Type: multipart/mixed; boundary=batch_357de4f7-6d0b-4e02-8cd2-6361411a9525
x-ms-version: 2020-08-04
Body:
--batch_357de4f7-6d0b-4e02-8cd2-6361411a9525
Content-Type: application/http
Content-Transfer-Encoding: binary
Content-ID: 0
DELETE /MYCONTAINER/NAVIGATIONS.sql?sp=racwdl&sig=SIGNATURE&sip=92.60.9.18&sv=2020-08-04&st=2022-04-27T08:52:29Z&spr=https&se=2022-05-30T16:52:29Z&sr=c HTTP/1.1
Content-Length: 0
--batch_357de4f7-6d0b-4e02-8cd2-6361411a9525--
Response:
--batchresponse_cdb19852-af76-4719-b9d2-8d61b5d3e6da
Content-Type: application/http
HTTP/1.1 400 One of the request inputs is not valid.
x-ms-error-code: InvalidInput
x-ms-request-id: 4dd49405-d01e-0035-12c4-601f12000000
x-ms-version: 2020-08-04
Content-Length: 221
Content-Type: application/xml
Server: Windows-Azure-Blob/1.0
<?xml version="1.0" encoding="utf-8"?>
<Error><Code>InvalidInput</Code><Message>One of the request inputs is not valid.
RequestId:4dd49405-d01e-0035-12c4-601f12000000
Time:2022-05-05T21:07:45.5349988Z</Message></Error>
--batchresponse_cdb19852-af76-4719-b9d2-8d61b5d3e6da--
I hope someone can give me a hint or solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何可能遇到问题并找到此页面的人(就像我所做的那样),身体必须在
- batch_guid -
line之后包含最终空白行。For anyone else who may run into the issue and find this page (as I did), the body has to include a final blank line after the
--batch_guid--
line.