将电子邮件HTML正文上载到Azure Blob存储时出现错误"MAC签名" [英] Error 'The MAC signature' when uploading email html body to Azure Blob Storage

查看:76
本文介绍了将电子邮件HTML正文上载到Azure Blob存储时出现错误"MAC签名"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们在将文件从我们开发的Outlook加载项上载到Blob存储中时遇到了一个问题.
基本上,我们有一个azure函数处理电子邮件信息并检索密钥和相应的标头信息,因此我们对URL blob存储api进行了放置,因此当我收到以下错误时:

<代码>
验证失败
</代码>
<消息>
服务器无法验证请求.请确保正确构成Authorization标头的值(包括签名).
RequestId:00000000-0000-0000-0000-00000000000
时间:2018-07-27T18:59:05.7710792Z
</消息>
< AuthenticationErrorDetail>
在HTTP请求"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"中找到的MAC签名与任何计算出的签名都不相同.服务器使用以下字符串进行签名:'PUT

奇怪的是,对于某些电子邮件,该过程可以正常运行,但对于其余电子邮件,我会收到前面提到的错误.

Hello, we are facing an issue at the time to upload a file into the blob storage from an Outlook Addin that we have developed.
Basically we have one azure function that process the email information and retrieves a key and the corresponding headers information, so then we do a put to the url blob storage api, so there is when i recieve the following 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:00000000-0000-0000-0000-00000000000
Time:2018-07-27T18:59:05.7710792Z
</Message>
<AuthenticationErrorDetail>
The MAC signature found in the HTTP request 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is not the same as any computed signature. Server used following string to sign: 'PUT

The strange part is that for some emails the process works fine, but for the rest i receive the error mentioned before.

谢谢

推荐答案

您能否详细说明一下方案"x-ms-range"和"Azure存储服务的授权(密钥)".

Could you elaborate more about your scenario "x-ms-range" and "Authorization(keys) of the Azure Storage Services".


这篇关于将电子邮件HTML正文上载到Azure Blob存储时出现错误"MAC签名"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆