You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

配置JMeter上传文件至Azure存储账户时认证失败求助

JMeter上传文件到Azure存储账户时的认证失败问题

我需要配置JMeter,将文件上传到我有访问权限的Azure存储账户,当前配置如下:

HTTP Header Manager配置

<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager">
  <collectionProp name="HeaderManager.headers">
    <elementProp name="" elementType="Header">
      <stringProp name="Header.name">x-ms-blob-type</stringProp>
      <stringProp name="Header.value">BlockBlob</stringProp>
    </elementProp>
  </collectionProp>
</HeaderManager>

HTTP Request配置

<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP request">
  <stringProp name="HTTPSampler.domain">aznednatestsa01.blob.core.windows.net</stringProp>
  <stringProp name="HTTPSampler.protocol">https</stringProp>
  <stringProp name="HTTPSampler.path">/landing?sp=racwdli&amp;st=2024-01-29T09:14:04Z&amp;se=2024-01-29T17:14:04Z&amp;sip=10.115.129.22&amp;sv=2022-11-02&amp;sr=c&amp;sig=Qyn3TQv8N5izlN8jD14hFAo66fzGiKDxe%2BWSepLUVZw%3D</stringProp>
  <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  <stringProp name="HTTPSampler.method">PUT</stringProp>
  <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  <elementProp name="HTTPsampler.Files" elementType="HTTPFileArgs">
    <collectionProp name="HTTPFileArgs.files">
      <elementProp name="C:\Users\Tommaso Perilli\Downloads\performanceTestingAsset_20240122141924.parquet" elementType="HTTPFileArg">
        <stringProp name="File.mimetype">application/octent-stream</stringProp>
        <stringProp name="File.path">C:\Users\Tommaso Perilli\Downloads\performanceTestingAsset_20240122141924.parquet</stringProp>
        <stringProp name="File.paramname">performanceTestingAsset_20240122141924.parquet</stringProp>
      </elementProp>
    </collectionProp>
  </elementProp>
  <boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
  <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
    <collectionProp name="Arguments.arguments"/>
  </elementProp>
</HTTPSamplerProxy>

启动JMeter后出现如下错误:

<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:02f855a0-401e-0042-3e96-528366000000
Time:2024-01-29T09:33:42.8148368Z</Message><AuthenticationErrorDetail>Signature did not match. String to sign used was racwdli
2024-01-29T09:14:04Z
2024-01-29T17:14:04Z
/blob/aznednatestsa01/$root

10.115.129.22

2022-11-02
c

</Error>

恳请帮忙解决此问题,谢谢!我尝试通过JMeter将文件上传至Azure存储账户,但遇到了上述认证错误。

内容的提问来源于stack exchange,提问作者Tommaso Perilli

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 07:43:19