alibaba / funcraft

(have) Fun with Serverless(API Gateway & Function Compute)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid argument in body when deploy function

cray2015 opened this issue · comments

Hi there I'm pretty new to using funcraft I installed the npm package for this. As soon as I deploy I get an invalid argument error i have enabled the debug mode.

lambda request body: { description: 'test http trigger python37', role: 'acs:ram::52667912558*****:role/aliyunfcgeneratedrole-ap-southeast-5-python37-demo', logConfig: [Object], vpcConfig: [Object], nasConfig: [Object] }

I dont know whats going wrong with it. need some help. is this some problem with the binary?

the full body is as follows
{"description":"test-http-trigger-python37","role":"acs:ram::526679125586****:role/aliyunfcgeneratedrole-ap-southeast-5-python37-demo","logConfig":{"project":"","logstore":""},"vpcConfig":{"VpcId":{"Ref":"Vpc"},"VSwitchIds":[{"Ref":"VSwitch"}],"SecurityGroupId":{"Ref":"SecurityGroup"}},"nasConfig":{"UserId":10003,"GroupId":10003,"MountPoints":[{"ServerAddr":{"Fn::Join":["",[{"Ref":"MountTarget"},":/","python37-demo"]]},"MountDir":"/mnt/auto"}]}}