alibaba / funcraft

(have) Fun with Serverless(API Gateway & Function Compute)
MIT License
941 stars 127 forks source link

fun deploy failed with 400 #895

Open siutin opened 4 years ago

siutin commented 4 years ago

Does anyone know how to fix this?

Waiting for service demo-springboot-service to be deployed...
    make sure role 'aliyunfcgeneratedrole-cn-beijing-demo-springboot-service' is exist
    role 'aliyunfcgeneratedrole-cn-beijing-demo-springboot-service' is already exist
    attaching policies ["AliyunOSSFullAccess"] to role: aliyunfcgeneratedrole-cn-beijing-demo-springboot-service
    attached policies ["AliyunOSSFullAccess"] to role: aliyunfcgeneratedrole-cn-beijing-demo-springboot-service
    Waiting for function demo-springboot to be deployed...
        Waiting for packaging function demo-springboot code...
        The function demo-springboot has been packaged.
PUT /services/demo-springboot-service/functions/demo-springboot failed with 400. requestid: 3aeaccdf-2121-405b-9aaa-c6c5a9d6eee4, message: Bad data in request body.
tanhe123 commented 4 years ago

try to use 'fun config' to increate timeout config value

threefoldo commented 4 years ago

I have increased the timeout to 60000, still got the same error. The upload stopped at around 80%, total size of the zip is 32MB.


Apparently, the error is related with uploading. After I delete the biggest file, it's OK to deploy. There are two time outs, one in 'fun config', another in 'template.yml'. Not sure which one affect the uploading, the default max timeout is only 600.

APassbyDreg commented 3 years ago

going through the same error here while deploying to ap1 (jp) in china mainland, and i still dont understand why the whole project is uploaded even though i have just modified one line of code 😅