英文:
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>
我已经确认我的授权令牌仍然有效。示例文件中没有在标头中列出授权信息,但我已经在标头中包含了它。
如果有任何建议,将不胜感激。谢谢。
英文:
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.
<Error>
<Code>AccessDenied</Code>
<Message>Invalid according to Policy: Policy expired.</Message>
<RequestId>xxxxxxxxxxxxxxxx</RequestId> <HostId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</HostId>
</Error>
When I add the authorization to the header I get the error below.
<Error>
<Code>InvalidArgument</Code>
<Message>Unsupported Authorization Type</Message>
<ArgumentName>Authorization</ArgumentName>
<ArgumentValue>Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx</ArgumentValue>
<RequestId>xxxxxxxxxxxxxxxx</RequestId>
<HostId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</HostId>
</Error>
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
The variables in the Body of the request seem fine
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:
<Error>
<Code>InvalidArgument</Code>
<Message>Unsupported Authorization Type</Message>
<ArgumentName>Authorization</ArgumentName>
<ArgumentValue>Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx</ArgumentValue>
<RequestId>xxxxxxxxxxxxxxxx</RequestId
<HostId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</HostId>
</Error>
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:
<Error>
<Code>AccessDenied</Code>
<Message>Invalid according to Policy: Policy expired.</Message>
<RequestId>xxxxxxxxxxxxxxxx</RequestId>
<HostId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</HostId>
</Error>
You have to execute the Upload the AppBundle
before the link you got from the previous step Register the AppBundle
expires.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论