gpt4 book ai didi

azure 存储副本 : The value for one of the HTTP headers is not in the correct format

转载 作者:数据小太阳 更新时间:2023-10-29 03:23:48 26 4
gpt4 key购买 nike

我正在使用 this library .

当我运行时:

b := container.GetBlobReference("bar")
err := b.Copy("foo", nil)

我得到:

storage: service returned error: StatusCode=400, ErrorCode=InvalidHeaderValue, ErrorMessage=The value for one of the HTTP headers is not in the correct format. RequestId:66d0164b-001e-0028-2c4f-78a847000000 Time:2017-12-18T22:26:59.9585462Z, RequestInitiated=Mon, 18 Dec 2017 22:26:59 GMT, RequestId=66d0164b-001e-0028-2c4f-78a847000000, API Version=2016-05-31, QueryParameterName=, QueryParameterValue=

文件“foo”确实存在。

也许提示在 QueryParameterNameQueryParameterValue 中没有值。

最佳答案

要复制的源必须是绝对的:

destBlob := h.client.GetBlobReference(to)
sourceBlob := h.client.GetBlobReference(from)
err := destBlob.Copy(sourceBlob.GetURL(), nil)

关于 azure 存储副本 : The value for one of the HTTP headers is not in the correct format,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47877467/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com