Coco/fix upload big file for http invoke #741
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
问题 1:fun dpeloy 部署日志服务出现 AccessKeyId ... is inactive,反复排查 ak 信息正确,原因是日志服务未开通导致。
解决:捕捉错误特征并引导用户去日志服务首页开通服务。
问题 2: 修复 mac 上 http invoke 时表单过大的问题。
版本 1 : windows 和 mac 都用 dockerode exec 的 stdin 传递事件。
发现的问题:dockerode exec 在 windows 上有问题,用 exec 的 stdin 传递事件,当调用 stream.end() 时,会直接导致 exec 退出,且 ExitCode 为 null。
版本 2:不使用 stdin 传递事件,而是自定义参数 --event 和 --decode 来处理 event。
发现的问题:表单过大时会出现报错:/var/fc/runtime/nodejs10/mock exited with code 126,目前此问题在 mac 和 windows 上均有发生。
版本3(此 pr):windows 上行为和版本 2 保持一致,并修复 mac 表单限制。mac 上在 docker exec 时回退为 stdin。需要在 dockerode 提一个 issue,待 dockerode 修复后。fun 才真正解决此问题。
问题 3: 修复部署时 Policies 显示 [objec],[objec] 的问题以及配置 Policies 的 Resources 新增类型支持