简体   繁体   English

Revit的设计自动化:无法添加AppBundle Zip文件

[英]Design Automation For Revit: Unable to Add AppBundle Zip File

I'm following the Design Automation APIv3 Tutorial for Revit at the following link: Forge Tutorial . 我通过以下链接关注Revit的Design Automation APIv3教程: Forge教程 Using postman I got up to task 4/step 3 before getting stuck. 在使用邮递员之前,我先完成了任务4 /步骤3。 The error message i'm getting is the following: 我收到的错误消息如下:

'Invalid according to Policy: Policy Condition failed: ["eq", "$key", "apps/ForgeTest/DeleteWallsApp3/1"]' '根据策略无效:策略条件失败:[“ eq”,“ $ key”,“ apps / ForgeTest / DeleteWallsApp3 / 1”]'

I'm using the formData returned from the post request I made for creating a new app bundle. 我正在使用从创建新的应用程序捆绑包发出的发布请求返回的formData。 What could the problem be? 问题是什么?

In the endpoint response to POST appbundles there's a key attribute (your access key for temporary access to our bucket) that needs to go into your post fields when uploading the bundle to your AWS S3 signed URL: 在将POST appbundles到终端的响应中,有一个key属性(您的访问密钥,用于临时访问我们的存储桶),在将捆绑包上传到您的AWS S3签名URL时,需要将该属性输入到您的发布字段中:

{
    "uploadParameters": {
        "endpointURL": "https://dasprod-store.s3.amazonaws.com",
        "formData": {
            "key": "apps/ForgeTest/DeleteWallsApp3/1", //find your access key here
...

Create another bundle or a new version of the current bundle through POST appbundles/:id/versions and make sure in your cURL command to upload the bundle the keys match: 通过POST appbundles /:id / versions创建另一个捆绑包或当前捆绑包的新版本,并确保在您的cURL命令中上传捆绑包中的键匹配:

curl https://bucketname.s3.amazonaws.com/
-F key = apps/ForgeTest/DeleteWallsApp3/1 // access key goes here
-F content-type = application/octet-stream
-F policy = eyJleHBpcmF0aW9uIjoiMjAxOC0wNi0yMVQxMzo...(trimmed)
-F x-amz-signature = 800e52d73579387757e1c1cd88762...(trimmed)
-F x-amz-credential = AKIAIOSFODNN7EXAMPLE/20180621/us-west-2/s3/aws4_request/
-F x-amz-algorithm = AWS4-HMAC-SHA256
-F x-amz-date = 20180621T091656Z
-F file=@E:myfile.zip

See here for details on how AWS pre-signed URL (the URL to upload the appbundle to Forge's AWS cloud storage) works. 有关AWS预签名URL(将应用程序上传到Forge的AWS云存储的URL)的工作方式的详细信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM