无法将应用程序捆绑包上传至APS设计自动化。

huangapple go评论57阅读模式
英文:

Unable to upload app bundle to APS Design Automation

问题

我正在按照Postman的指示进行操作,但在Task 4 Upload AppBundle这一步卡住了。

下载的Postman文件中,我查看了GitHub文档,但没有列出在标头中的授权信息。当我点击发送时,出现以下错误。

<Error>
    <Code>AccessDenied</Code>
    <Message>Invalid according to Policy: Policy expired.</Message>
    <RequestId>xxxxxxxxxxxxxxxx</RequestId>
    <HostId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</HostId>
</Error>

当我将授权信息添加到标头时,出现以下错误。

<Error>
    <Code>InvalidArgument</Code>
    <Message>Unsupported Authorization Type</Message>
    <ArgumentName>Authorization</ArgumentName>
    <ArgumentValue>Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx</ArgumentValue>
    <RequestId>xxxxxxxxxxxxxxxx</RequestId>
    <HostId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</HostId>
</Error>

我已经确认我的授权令牌仍然有效。示例文件中没有在标头中列出授权信息,但我已经在标头中包含了它。

无法将应用程序捆绑包上传至APS设计自动化。

请求主体中的变量看起来没问题
无法将应用程序捆绑包上传至APS设计自动化。

如果有任何建议,将不胜感激。谢谢。

英文:

I'm following the postman instructions and I'm stuck on Task 4 Upload AppBundle.

The downloaded postman files. I checked the github documentation and it does not list the authorization in the header. When I click send I get the error below.

&lt;Error&gt;
    &lt;Code&gt;AccessDenied&lt;/Code&gt;
    &lt;Message&gt;Invalid according to Policy: Policy expired.&lt;/Message&gt;
    &lt;RequestId&gt;xxxxxxxxxxxxxxxx&lt;/RequestId&gt;        &lt;HostId&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/HostId&gt;
&lt;/Error&gt;

When I add the authorization to the header I get the error below.

&lt;Error&gt;
    &lt;Code&gt;InvalidArgument&lt;/Code&gt;
    &lt;Message&gt;Unsupported Authorization Type&lt;/Message&gt;
    &lt;ArgumentName&gt;Authorization&lt;/ArgumentName&gt;
    &lt;ArgumentValue&gt;Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/ArgumentValue&gt;
    &lt;RequestId&gt;xxxxxxxxxxxxxxxx&lt;/RequestId&gt;
    &lt;HostId&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/HostId&gt;
&lt;/Error&gt;

I have checked that my authorization token is still active. The example files don't list the authorization in the header, but I've included it in the header

无法将应用程序捆绑包上传至APS设计自动化。

The variables in the Body of the request seem fine
无法将应用程序捆绑包上传至APS设计自动化。

Any advice would be greatly appreciated. Thank you.

答案1

得分: 0

关于错误:

错误代码:InvalidArgument
错误消息:不支持的授权类型
参数名称:Authorization
参数值:Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx
请求标识:xxxxxxxxxxxxxxxx
主机标识:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

在“上传AppBundle”步骤中,请不要在调用中添加APS授权标头。此调用是向AWS S3服务上传此包。


关于错误:

错误代码:AccessDenied
错误消息:根据策略无效:策略已过期。
请求标识:xxxxxxxxxxxxxxxx
主机标识:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

在链接到上一步“注册AppBundle”获得的链接过期之前,您必须执行“上传AppBundle”步骤。

英文:

For the error:

&lt;Error&gt;
    &lt;Code&gt;InvalidArgument&lt;/Code&gt;
    &lt;Message&gt;Unsupported Authorization Type&lt;/Message&gt;
    &lt;ArgumentName&gt;Authorization&lt;/ArgumentName&gt;
    &lt;ArgumentValue&gt;Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/ArgumentValue&gt;
    &lt;RequestId&gt;xxxxxxxxxxxxxxxx&lt;/RequestId
    &lt;HostId&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/HostId&gt;
&lt;/Error&gt;

You should not be adding APS auth headers to the call in Upload the AppBundle step. The call is to AWS S3 service where you are uploading this bundle.


For the error:

&lt;Error&gt;
    &lt;Code&gt;AccessDenied&lt;/Code&gt;
    &lt;Message&gt;Invalid according to Policy: Policy expired.&lt;/Message&gt;
    &lt;RequestId&gt;xxxxxxxxxxxxxxxx&lt;/RequestId&gt;
    &lt;HostId&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;/HostId&gt;
&lt;/Error&gt;

You have to execute the Upload the AppBundle before the link you got from the previous step Register the AppBundle expires.

huangapple
  • 本文由 发表于 2023年6月6日 03:35:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76409511.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定