阿里云 武汉 OSS Invalid signing region in Authorization header 解决方案

<?xml version="1.0" encoding="UTF-8"?>
      <Error>
        <Code>InvalidArgument</Code>
        <Message>Invalid signing region in Authorization header.</Message>
        <RequestId>684A9Fs356g9353s896C9</RequestId>
        <HostId>xxx.oss-cn-wuhan-lr.aliyuncs.com</HostId>
        <Authorization>OSS4-HMAC-SHA256 Credential=xxx</Authorization>
        <EC>0002-00000226</EC>
        <RecommendDoc>https://api.aliyun.com/troubleshoot?q=0002-00000226</RecommendDoc>
      </Error>

武汉地区的地域ID比较特别,多了一个lr​,region 用cn-wuhan-lr​就可以了。地域ID见OSS地域和访问域名_对象存储(OSS)-阿里云帮助中心

你可能也感兴趣