尝试发送更新时代码推送服务器抛出错误

问题描述 投票:0回答:1

使用命令

code-push-standalone release-react myapp-android android
发送更新后,它确实会上传到aws,因为我可以看到我的存储桶中上传了一个文件,但服务器给出了此错误,并且更新从未传递到应用程序。

Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.
An error was encountered in a non-retryable streaming request.
Unknown error source
NotImplemented: A header you provided implies functionality that is not implemented
    at throwDefaultError (/Users/irfanwani/frejun/code-push-server/api/node_modules/@smithy/smithy-client/dist-cjs/index.js:836:20)
    at /Users/irfanwani/frejun/code-push-server/api/node_modules/@smithy/smithy-client/dist-cjs/index.js:845:5
    at de_CommandError (/Users/irfanwani/frejun/code-push-server/api/node_modules/@aws-sdk/client-s3/dist-cjs/index.js:4739:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/irfanwani/frejun/code-push-server/api/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20
    at async /Users/irfanwani/frejun/code-push-server/api/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:485:18
    at async /Users/irfanwani/frejun/code-push-server/api/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38
    at async /Users/irfanwani/frejun/code-push-server/api/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js:263:18
    at async /Users/irfanwani/frejun/code-push-server/api/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:110:22
    at async /Users/irfanwani/frejun/code-push-server/api/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14

我添加了文档中提到的必要的环境变量。 顺便说一句,我正在使用这个代码推送服务器分支 https://github.com/nmengual/code-push-server,因为我想使用 aws 并且这个分支实现了此功能。

amazon-web-services amazon-s3 ota code-push react-native-code-push
1个回答
0
投票

根据这个另一个线程,问题似乎是流(文件)为空或blob ID为空。我相信流更有可能是空的。

我也认为没有好的解决方案,除非你或其他人修改

© www.soinside.com 2019 - 2024. All rights reserved.