找不到 appbundles 二进制文件 (Design Automation V3)

An appbundles binary could not be found (Design Automation V3)

我正在尝试 post 使用设计自动化 v3 的工作项。我设法创建了一个 appbundle 和一个 activity,但是当我 post 一个工作项时,我得到了这个异常:

服务器返回非成功状态代码 400(错误请求)。 更多错误详情: {"appbundles":["An appbundles binary could not be found. Make sure your apps were uploaded correctly.\nParameter name: appbundles"]}.

导致此问题的原因是什么?

这通常表示您忘记上传 zip 文件。我建议您使用我们的 .net sdk. It has some helpful wrappers that make this easier. See here.

这里是上传 ZIP AppBundle 的示例代码:

        RestClient uploadClient = new RestClient(newAppVersion.UploadParameters.EndpointURL);
        RestRequest request = new RestRequest(string.Empty, Method.POST);
        request.AlwaysMultipartFormData = true;
        foreach (KeyValuePair<string, string> x in newAppVersion.UploadParameters.FormData) request.AddParameter(x.Key, x.Value);
        request.AddFile("file", packageZipPath);
        request.AddHeader("Cache-Control", "no-cache");
        await uploadClient.ExecuteTaskAsync(request);

来自 Learn Forge Tutorial, see code.