问题描述
我正在尝试在本地对AWS Gateway Api进行本地测试,并且一直在关注this site (among others)。我已经删除了多个示例存储库,并试图使其正常运行,并且到目前为止已经淘汰了。作为参考,我尝试使用的最新仓库是here。在PowerShell中运行sam local start-api
后,我使用Postman调用端点,这是我看到的错误消息:
Invoking InventoryManagerDemo::InventoryManagerDemo.Lambdas.GetPalletFunction::GetPallet (dotnetcore2.1)
Skip pulling image and use local one: amazon/aws-sam-cli-emulation-image-dotnetcore2.1:rapid-1.7.0.
Mounting C:\SourceCode\Test\InventoryManagerAWS as /var/task:ro,delegated inside runtime container
Could not find the required 'InventoryManagerDemo.deps.json'. This file should be present at the root of the deployment package.: LambdaException
START RequestId: bd07d65a-e632-1843-135b-7de4b1074c47 Version: $LATEST
END RequestId: bd07d65a-e632-1843-135b-7de4b1074c47
REPORT RequestId: bd07d65a-e632-1843-135b-7de4b1074c47 Init Duration: 125.55 ms Duration: 1.86 ms Billed Duration: 100 ms Memory Size: 256 MB Max Memory Used: 37 MB
Lambda returned empty body!
Invalid lambda response received: Invalid API Gateway Response Keys: {'errorMessage'} in {'errorMessage': 'InvalidErrorShape'}
2020-10-30 16:18:53 127.0.0.1 - - [30/Oct/2020 16:18:53] "GET /GetPallet/1 HTTP/1.1" 502 -
我在InventoryManagerDemo.deps.json
找到了InventoryManagerAWS\InventoryManagerDemo\bin\Debug\netcoreapp2.1\
。我尝试将其取出并放在根目录中只是为了尝试某些操作,但这没有用。有没有人得到这个工作?任何帮助将不胜感激!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)