简体   繁体   English

aws 放大错误“jsonString”参数丢失或为空

[英]aws amplify error 'jsonString' argument missing or empty

  1. terminal log终端日志

terminal log终端日志

  1. I am currently using aws-amplify/cli 4.38.0, but when I input the command of the first picture, an error came out, and even if I input the command of the second picture, an error like the picture appears.我目前使用的是aws-amplify/cli 4.38.0,但是当我输入第一张图片的命令时,出现了错误,即使我输入了第二张图片的命令,也出现了像图片一样的错误。

I got the same error when I removed parameters from a file parameters.json inside my lambda function.当我从我的 lambda function 中的文件parameters.json中删除参数时,我遇到了同样的错误。 I solved it by adding an empty obj {} in my parameters.json .我通过在我的parameters.json中添加一个空的 obj {}来解决它。 Then amplify push solved it for me.然后amplify push为我解决了它。

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

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