1

查看Apigee 文档,似乎没有指示 API BaaS 中资产允许的最大文件大小。

目前我正在尝试使用以下 CURL 命令发布一个 39MB 的存档:

curl -X PUT -i -F name="archive" -F file=@"/path/to/archive.zip" "https://api.usergrid.com/{org}/{app}/archives/{uuid}"

它正在回退:

HTTP/1.1 413 Request Entity Too Large
Content-Type: application/json
Content-Length: 98
Connection: Close

{
    "fault": 
    {
        "faultstring": "Body buffer overflow",
        "detail": 
        {
            "errorcode": "protocol.http.TooBigBody"
        }
    }
}
4

1 回答 1

0

尝试在 TargetEndpoint 上设置 request.streaming.enabled 属性。这将绕过消息处理器中的缓冲。

请参阅:http ://apigee.com/docs/api-services/content/endpoint-properties-reference

注意:当您检索更大的有效负载时,您还需要设置 response.streaming.enabled。

于 2014-07-20T23:33:47.933 回答